/[escript]/branches/RW_WIN32/finley/src/finleyC/ElementFile_markNodes.c
ViewVC logotype

Diff of /branches/RW_WIN32/finley/src/finleyC/ElementFile_markNodes.c

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

revision 209 by robwdcock, Sun Nov 20 05:43:12 2005 UTC revision 210 by robwdcock, Wed Nov 23 09:54:02 2005 UTC
# Line 34  void Finley_ElementFile_markNodes(index_ Line 34  void Finley_ElementFile_markNodes(index_
34     dim_t i,NN,NN2,e;     dim_t i,NN,NN2,e;
35     index_t color,*lin_node;     index_t color,*lin_node;
36     if (in!=NULL) {     if (in!=NULL) {
37       index_t id[in->ReferenceElement->Type->numNodes];       index_t *id = (in->ReferenceElement->Type->numNodes>0) ? TMPMEMALLOC(in->ReferenceElement->Type->numNodes,index_t) : (index_t*)NULL;
38    
39       for (i=0;i<in->ReferenceElement->Type->numNodes;i++) id[i]=i;       for (i=0;i<in->ReferenceElement->Type->numNodes;i++) id[i]=i;
40       if (useLinear) {       if (useLinear) {
41          NN=in->LinearReferenceElement->Type->numNodes;          NN=in->LinearReferenceElement->Type->numNodes;
# Line 63  void Finley_ElementFile_markNodes(index_ Line 64  void Finley_ElementFile_markNodes(index_
64             for (i=0;i<NN;i++) mask[in->Nodes[INDEX2(lin_node[i],e,NN2)]-offset]=1;             for (i=0;i<NN;i++) mask[in->Nodes[INDEX2(lin_node[i],e,NN2)]-offset]=1;
65          }          }
66        }        }
67        TMPMEMFREE(id);
68     }     }
69  }  }
70  /*  /*

Legend:
Removed from v.209  
changed lines
  Added in v.210

  ViewVC Help
Powered by ViewVC 1.1.26