/[escript]/trunk/finley/src/Mesh_line2.c
ViewVC logotype

Diff of /trunk/finley/src/Mesh_line2.c

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

revision 122 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 22  Line 22 
22    
23  /**************************************************************/  /**************************************************************/
24    
25  Finley_Mesh* Finley_RectangularMesh_Line2(int* numElements,double* Length,int* periodic, int order,int useElementsOnFace) {  Finley_Mesh* Finley_RectangularMesh_Line2(dim_t* numElements,double* Length,bool_t* periodic, index_t order,bool_t useElementsOnFace) {
26    int N0,NE0,i0,k,NDOF0,NFaceElements,NUMNODES;    dim_t N0,NE0,i0,NDOF0,NFaceElements;
27      index_t NUMNODES,k;
28    Finley_Mesh* out;    Finley_Mesh* out;
29    char name[50];    char name[50];
30    double time0=Finley_timer();    double time0=Finley_timer();
# Line 95  Finley_Mesh* Finley_RectangularMesh_Line Line 96  Finley_Mesh* Finley_RectangularMesh_Line
96      out->Elements->Nodes[INDEX2(0,k,2)]=i0;      out->Elements->Nodes[INDEX2(0,k,2)]=i0;
97      out->Elements->Nodes[INDEX2(1,k,2)]=i0+1;      out->Elements->Nodes[INDEX2(1,k,2)]=i0+1;
98    }    }
99    out->Elements->numColors=COLOR_MOD(0)+1;    out->Elements->minColor=0;
100      out->Elements->maxColor=COLOR_MOD(0);
101        
102    /*   face elements: */    /*   face elements: */
103    if (useElementsOnFace) {    if (useElementsOnFace) {
# Line 124  Finley_Mesh* Finley_RectangularMesh_Line Line 126  Finley_Mesh* Finley_RectangularMesh_Line
126         out->FaceElements->Nodes[INDEX2(0,1,NUMNODES)]=N0-1;         out->FaceElements->Nodes[INDEX2(0,1,NUMNODES)]=N0-1;
127      }      }
128    }    }
129    out->FaceElements->numColors=2;    out->FaceElements->maxColor=1;
130      out->FaceElements->minColor=0;
131    
132    /*  face elements done: */    /*  face elements done: */
133        
# Line 148  Finley_Mesh* Finley_RectangularMesh_Line Line 151  Finley_Mesh* Finley_RectangularMesh_Line
151    
152  /*  /*
153  * $Log$  * $Log$
154  * Revision 1.1  2004/10/26 06:53:57  jgs  * Revision 1.2  2005/07/08 04:07:52  jgs
155  * Initial revision  * Merge of development branch back to main trunk on 2005-07-08
156    *
157    * Revision 1.1.1.1.2.2  2005/06/30 01:53:56  gross
158    * a bug in coloring fixed
159    *
160    * Revision 1.1.1.1.2.1  2005/06/29 02:34:52  gross
161    * some changes towards 64 integers in finley
162    *
163    * Revision 1.1.1.1  2004/10/26 06:53:57  jgs
164    * initial import of project esys2
165  *  *
166  * Revision 1.1.1.1  2004/06/24 04:00:40  johng  * Revision 1.1.1.1  2004/06/24 04:00:40  johng
167  * Initial version of eys using boost-python.  * Initial version of eys using boost-python.

Legend:
Removed from v.122  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26