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

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

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

temp_trunk_copy/finley/src/ElementFile_allocTable.c revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC trunk/finley/src/ElementFile_allocTable.c revision 1716 by gross, Thu Aug 21 05:03:49 2008 UTC
# Line 76  void Finley_ElementFile_allocTable(Finle Line 76  void Finley_ElementFile_allocTable(Finle
76    return;    return;
77  }  }
78    
79    void Finley_ElementFile_setTagsInUse(Finley_ElementFile* in)
80    {
81        index_t *tagsInUse=NULL;
82        dim_t numTagsInUse;
83        if (in !=NULL) {
84           Finley_Util_setValuesInUse(in->Tag, in->numElements, &numTagsInUse, &tagsInUse, in->MPIInfo);
85           if (Finley_noError()) {
86              MEMFREE(in->tagsInUse);
87              in->tagsInUse=tagsInUse;
88              in->numTagsInUse=numTagsInUse;
89           }
90        }
91    }
92    
93  /*  deallocates the element table within an element file: */  /*  deallocates the element table within an element file: */
94    
95  void Finley_ElementFile_freeTable(Finley_ElementFile* in) {  void Finley_ElementFile_freeTable(Finley_ElementFile* in) {
# Line 84  void Finley_ElementFile_freeTable(Finley Line 98  void Finley_ElementFile_freeTable(Finley
98    MEMFREE(in->Nodes);    MEMFREE(in->Nodes);
99    MEMFREE(in->Tag);    MEMFREE(in->Tag);
100    MEMFREE(in->Color);    MEMFREE(in->Color);
101      MEMFREE(in->tagsInUse);
102      in->numTagsInUse=0;
103    in->numElements=0;    in->numElements=0;
104    in->maxColor=-1;    in->maxColor=-1;
105    in->minColor=0;    in->minColor=0;

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

  ViewVC Help
Powered by ViewVC 1.1.26