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

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

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

revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC
# Line 36  void Finley_Mesh_glueFaces(Finley_Mesh* Line 36  void Finley_Mesh_glueFaces(Finley_Mesh*
36     int NN=self->FaceElements->ReferenceElement->Type->numNodes;     int NN=self->FaceElements->ReferenceElement->Type->numNodes;
37     int numDim=self->Nodes->numDim;     int numDim=self->Nodes->numDim;
38     /* allocate work arrays */     /* allocate work arrays */
39     elem1=(int*) TMPMEMALLOC(sizeof(int)*self->FaceElements->numElements);     elem1=TMPMEMALLOC(self->FaceElements->numElements,int);
40     elem0=(int*) TMPMEMALLOC(sizeof(int)*self->FaceElements->numElements);     elem0=TMPMEMALLOC(self->FaceElements->numElements,int);
41     elem_mask=(int*) TMPMEMALLOC(sizeof(int)*self->FaceElements->numElements);     elem_mask=TMPMEMALLOC(self->FaceElements->numElements,int);
42     matching_nodes_in_elem1=(int*) TMPMEMALLOC(sizeof(int)*sizeof(int)*self->FaceElements->numElements*NN);     matching_nodes_in_elem1=TMPMEMALLOC(self->FaceElements->numElements*NN,int);
43     new_node_label=(int*) TMPMEMALLOC(sizeof(int)*self->Nodes->numNodes);     new_node_label=TMPMEMALLOC(self->Nodes->numNodes,int);
44     new_node_list=(int*) TMPMEMALLOC(sizeof(int)*self->Nodes->numNodes);     new_node_list=TMPMEMALLOC(self->Nodes->numNodes,int);
45     new_node_mask=(int*) TMPMEMALLOC(sizeof(int)*self->Nodes->numNodes);     new_node_mask=TMPMEMALLOC(self->Nodes->numNodes,int);
46     if (!(Finley_checkPtr(elem1) || Finley_checkPtr(elem0) || Finley_checkPtr(elem_mask) || Finley_checkPtr(new_node_label) || Finley_checkPtr(new_node_list) || Finley_checkPtr(new_node_mask) || Finley_checkPtr(matching_nodes_in_elem1)) ) {     if (!(Finley_checkPtr(elem1) || Finley_checkPtr(elem0) || Finley_checkPtr(elem_mask) || Finley_checkPtr(new_node_label) || Finley_checkPtr(new_node_list) || Finley_checkPtr(new_node_mask) || Finley_checkPtr(matching_nodes_in_elem1)) ) {
47        /* find the matching face elements */        /* find the matching face elements */
48        Finley_Mesh_findMatchingFaces(self->Nodes,self->FaceElements,safety_factor,tolerance,&numPairs,elem0,elem1,matching_nodes_in_elem1);        Finley_Mesh_findMatchingFaces(self->Nodes,self->FaceElements,safety_factor,tolerance,&numPairs,elem0,elem1,matching_nodes_in_elem1);
# Line 120  void Finley_Mesh_glueFaces(Finley_Mesh* Line 120  void Finley_Mesh_glueFaces(Finley_Mesh*
120    
121  /*  /*
122  * $Log$  * $Log$
123  * Revision 1.3  2004/12/15 03:48:45  jgs  * Revision 1.4  2004/12/15 07:08:33  jgs
124  * *** empty log message ***  * *** empty log message ***
125  *  *
 * Revision 1.1.1.1  2004/10/26 06:53:57  jgs  
 * initial import of project esys2  
 *  
 * Revision 1.1.1.1  2004/06/24 04:00:40  johng  
 * Initial version of eys using boost-python.  
126  *  *
127  *  *
128  */  */

Legend:
Removed from v.100  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.26