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

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

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

revision 1732 by trankine, Fri Jan 11 07:45:58 2008 UTC revision 1733 by gross, Thu Aug 28 01:46:07 2008 UTC
# Line 132  Finley_Mesh* Finley_RectangularMesh_Rec8 Line 132  Finley_Mesh* Finley_RectangularMesh_Rec8
132    }    }
133    offset0=e_offset0*N_PER_E;    offset0=e_offset0*N_PER_E;
134    offset1=e_offset1*N_PER_E;    offset1=e_offset1*N_PER_E;
135    local_N0=local_NE0*N_PER_E+1;    local_N0=local_NE0>0 ? local_NE0*N_PER_E+1 : 0;
136    local_N1=local_NE1*N_PER_E+1;    local_N1=local_NE1>0 ? local_NE1*N_PER_E+1 : 0;
137    
138    /* get the number of surface elements */    /* get the number of surface elements */
139    
140    NFaceElements=0;    NFaceElements=0;
141    if (!periodic[0]) {    if (!periodic[0] &&  (local_NE0>0)) {
142       NDOF0=N0;       NDOF0=N0;
143       if (e_offset0 == 0) NFaceElements+=local_NE1;       if (e_offset0 == 0) NFaceElements+=local_NE1;
144       if (local_NE0+e_offset0 == NE0) NFaceElements+=local_NE1;       if (local_NE0+e_offset0 == NE0) NFaceElements+=local_NE1;
145    } else {    } else {
146        NDOF0=N0-1;        NDOF0=N0-1;
147    }    }
148    if (!periodic[1]) {    if (!periodic[1] && (local_NE1>0)) {
149       NDOF1=N1;       NDOF1=N1;
150       if (e_offset1 == 0) NFaceElements+=local_NE0;       if (e_offset1 == 0) NFaceElements+=local_NE0;
151       if (local_NE1+e_offset1 == NE1) NFaceElements+=local_NE0;       if (local_NE1+e_offset1 == NE1) NFaceElements+=local_NE0;
# Line 206  Finley_Mesh* Finley_RectangularMesh_Rec8 Line 206  Finley_Mesh* Finley_RectangularMesh_Rec8
206       NN=out->FaceElements->numNodes;       NN=out->FaceElements->numNodes;
207       totalNECount=NE0*NE1;       totalNECount=NE0*NE1;
208       faceNECount=0;       faceNECount=0;
209       if (!periodic[0]) {       if (!periodic[0] && (local_NE0>0)) {
210          /* **  elements on boundary 001 (x1=0): */          /* **  elements on boundary 001 (x1=0): */
211            
212          if (e_offset0 == 0) {          if (e_offset0 == 0) {
# Line 267  Finley_Mesh* Finley_RectangularMesh_Rec8 Line 267  Finley_Mesh* Finley_RectangularMesh_Rec8
267           }           }
268           totalNECount+=NE1;           totalNECount+=NE1;
269       }       }
270       if (!periodic[1]) {       if (!periodic[1] && (local_NE0>0)) {
271          /* **  elements on boundary 010 (x2=0): */          /* **  elements on boundary 010 (x2=0): */
272          if (e_offset1 == 0) {          if (e_offset1 == 0) {
273             #pragma omp parallel for private(i0,k,node0)             #pragma omp parallel for private(i0,k,node0)

Legend:
Removed from v.1732  
changed lines
  Added in v.1733

  ViewVC Help
Powered by ViewVC 1.1.26