/[escript]/branches/doubleplusgood/finley/src/Mesh_joinFaces.cpp
ViewVC logotype

Diff of /branches/doubleplusgood/finley/src/Mesh_joinFaces.cpp

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

revision 4326 by jfenwick, Wed Feb 27 06:09:33 2013 UTC revision 4327 by jfenwick, Wed Mar 20 05:09:11 2013 UTC
# Line 64  void Finley_Mesh_joinFaces(Finley_Mesh* Line 64  void Finley_Mesh_joinFaces(Finley_Mesh*
64     }     }
65    
66     /* allocate work arrays */     /* allocate work arrays */
67     elem1=TMPMEMALLOC(self->FaceElements->numElements,index_t);     elem1=new index_t[self->FaceElements->numElements];
68     elem0=TMPMEMALLOC(self->FaceElements->numElements,index_t);     elem0=new index_t[self->FaceElements->numElements];
69     elem_mask=TMPMEMALLOC(self->FaceElements->numElements,index_t);     elem_mask=new index_t[self->FaceElements->numElements];
70     matching_nodes_in_elem1=TMPMEMALLOC(self->FaceElements->numElements*NN,index_t);     matching_nodes_in_elem1=new index_t[self->FaceElements->numElements*NN];
71    
72     if (!(Finley_checkPtr(elem1) || Finley_checkPtr(elem0) || Finley_checkPtr(elem_mask) || Finley_checkPtr(matching_nodes_in_elem1)))  {     if (!(Finley_checkPtr(elem1) || Finley_checkPtr(elem0) || Finley_checkPtr(elem_mask) || Finley_checkPtr(matching_nodes_in_elem1)))  {
73    
# Line 132  void Finley_Mesh_joinFaces(Finley_Mesh* Line 132  void Finley_Mesh_joinFaces(Finley_Mesh*
132           }           }
133        }        }
134     }     }
135     TMPMEMFREE(elem1);     delete[] elem1;
136     TMPMEMFREE(elem0);     delete[] elem0;
137     TMPMEMFREE(matching_nodes_in_elem1);     delete[] matching_nodes_in_elem1;
138     TMPMEMFREE(elem_mask);     delete[] elem_mask;
139  }  }

Legend:
Removed from v.4326  
changed lines
  Added in v.4327

  ViewVC Help
Powered by ViewVC 1.1.26