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

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

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

revision 1715 by gross, Thu May 8 08:52:41 2008 UTC revision 1716 by gross, Thu Aug 21 05:03:49 2008 UTC
# Line 54  void Finley_NodeFile_allocTable(Finley_N Line 54  void Finley_NodeFile_allocTable(Finley_N
54               || Finley_checkPtr(globalNodesIndex2)               || Finley_checkPtr(globalNodesIndex2)
55               || Finley_checkPtr(reducedNodesId2)               || Finley_checkPtr(reducedNodesId2)
56               || Finley_checkPtr(degreesOfFreedomId2) ) {               || Finley_checkPtr(degreesOfFreedomId2) ) {
   reducedDegreesOfFreedomId2=MEMALLOC(numNodes,index_t);  
57      MEMFREE(Id2);      MEMFREE(Id2);
58      MEMFREE(Coordinates2);      MEMFREE(Coordinates2);
59      MEMFREE(Tag2);      MEMFREE(Tag2);
# Line 110  void Finley_NodeFile_freeTable(Finley_No Line 109  void Finley_NodeFile_freeTable(Finley_No
109      MEMFREE(in->reducedNodesId);      MEMFREE(in->reducedNodesId);
110      MEMFREE(in->degreesOfFreedomId);      MEMFREE(in->degreesOfFreedomId);
111      MEMFREE(in->reducedDegreesOfFreedomId);      MEMFREE(in->reducedDegreesOfFreedomId);
112        MEMFREE(in->tagsInUse);
113        in->numTagsInUse=0;
114      Finley_NodeMapping_free(in->nodesMapping);      Finley_NodeMapping_free(in->nodesMapping);
115      in->nodesMapping=NULL;      in->nodesMapping=NULL;
116      Finley_NodeMapping_free(in->reducedNodesMapping);      Finley_NodeMapping_free(in->reducedNodesMapping);
# Line 131  void Finley_NodeFile_freeTable(Finley_No Line 132  void Finley_NodeFile_freeTable(Finley_No
132      Paso_Connector_free(in->reducedDegreesOfFreedomConnector);      Paso_Connector_free(in->reducedDegreesOfFreedomConnector);
133      in->reducedDegreesOfFreedomConnector=NULL;      in->reducedDegreesOfFreedomConnector=NULL;
134    
135        in->numTagsInUse=0;
136      in->numNodes=0;      in->numNodes=0;
137    }    }
138  }  }
139    
140    void Finley_NodeFile_setTagsInUse(Finley_NodeFile* in)
141    {
142        index_t *tagsInUse=NULL;
143        dim_t numTagsInUse;
144        if (in != NULL) {
145           Finley_Util_setValuesInUse(in->Tag, in->numNodes, &numTagsInUse, &tagsInUse, in->MPIInfo);
146           if (Finley_noError()) {
147              MEMFREE(in->tagsInUse);
148              in->tagsInUse=tagsInUse;
149              in->numTagsInUse=numTagsInUse;
150           }
151       }
152    }
153    

Legend:
Removed from v.1715  
changed lines
  Added in v.1716

  ViewVC Help
Powered by ViewVC 1.1.26