/[escript]/trunk/esys2/finley/src/finleyC/Mesh_hex8.c
ViewVC logotype

Diff of /trunk/esys2/finley/src/finleyC/Mesh_hex8.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 149 by jgs, Thu Sep 1 03:31:39 2005 UTC
# Line 21  Line 21 
21    
22  /**************************************************************/  /**************************************************************/
23    
24  Finley_Mesh* Finley_RectangularMesh_Hex8(int* numElements,double* Length,int* periodic, int order,int useElementsOnFace) {  Finley_Mesh* Finley_RectangularMesh_Hex8(dim_t* numElements,double* Length,bool_t* periodic, index_t order,bool_t useElementsOnFace) {
25    int N0,N1,N2,NE0,NE1,NE2,i0,i1,i2,k,node0,totalNECount,faceNECount,NDOF0,NDOF1,NDOF2,NFaceElements,NUMNODES;    dim_t N0,N1,N2,NE0,NE1,NE2,i0,i1,i2,k,totalNECount,faceNECount,NDOF0,NDOF1,NDOF2,NFaceElements,NUMNODES;
26      index_t node0;
27    Finley_Mesh* out;    Finley_Mesh* out;
28    char name[50];    char name[50];
29    double time0=Finley_timer();    double time0=Finley_timer();
# Line 151  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 152  Finley_Mesh* Finley_RectangularMesh_Hex8
152        }        }
153      }      }
154    }    }
155    out->Elements->numColors=COLOR_MOD(0)+3*COLOR_MOD(0)+9*COLOR_MOD(0)+1;    out->Elements->minColor=0;
156      out->Elements->maxColor=COLOR_MOD(0)+3*COLOR_MOD(0)+9*COLOR_MOD(0);
157        
158    /*   face elements: */    /*   face elements: */
159        
# Line 362  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 364  Finley_Mesh* Finley_RectangularMesh_Hex8
364       totalNECount+=NE0*NE2;       totalNECount+=NE0*NE2;
365       faceNECount+=NE0*NE2;       faceNECount+=NE0*NE2;
366    }    }
367    out->FaceElements->numColors=24;    out->FaceElements->minColor=0;
368      out->FaceElements->maxColor=23;
369        
370    /*  face elements done: */    /*  face elements done: */
371        
# Line 373  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 376  Finley_Mesh* Finley_RectangularMesh_Hex8
376    /* prepare mesh for further calculatuions:*/    /* prepare mesh for further calculatuions:*/
377    Finley_Mesh_prepare(out) ;    Finley_Mesh_prepare(out) ;
378    
379      #ifdef Finley_TRACE
380    printf("timing: mesh generation: %.4e sec\n",Finley_timer()-time0);    printf("timing: mesh generation: %.4e sec\n",Finley_timer()-time0);
381      #endif
382    
383    if (Finley_ErrorCode!=NO_ERROR) {    if (Finley_ErrorCode!=NO_ERROR) {
384        Finley_Mesh_dealloc(out);        Finley_Mesh_dealloc(out);
# Line 384  Finley_Mesh* Finley_RectangularMesh_Hex8 Line 389  Finley_Mesh* Finley_RectangularMesh_Hex8
389    
390  /*  /*
391  * $Log$  * $Log$
392  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.3  2005/09/01 03:31:35  jgs
393  * Initial revision  * Merge of development branch dev-02 back to main trunk on 2005-09-01
394    *
395    * Revision 1.2.2.1  2005/08/24 02:02:18  gross
396    * timing output switched off. solver output can be swiched through getSolution(verbose=True) now.
397    *
398    * Revision 1.2  2005/07/08 04:07:52  jgs
399    * Merge of development branch back to main trunk on 2005-07-08
400    *
401    * Revision 1.1.1.1.2.1  2005/06/29 02:34:52  gross
402    * some changes towards 64 integers in finley
403    *
404    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
405    * initial import of project esys2
406  *  *
407  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
408  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

Legend:
Removed from v.82  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.26