/[escript]/branches/arrayview_from_1695_trunk/finley/src/ElementFile_allocTable.c
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/finley/src/ElementFile_allocTable.c

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

revision 1780 by jfenwick, Mon Aug 11 03:33:40 2008 UTC revision 1781 by jfenwick, Thu Sep 11 05:03:14 2008 UTC
# Line 21  Line 21 
21    
22  /**************************************************************/  /**************************************************************/
23    
24    
25  #include "ElementFile.h"  #include "ElementFile.h"
26    #include "Util.h"
27    
28  /****************************************************************************/  /****************************************************************************/
29    
# Line 76  void Finley_ElementFile_allocTable(Finle Line 78  void Finley_ElementFile_allocTable(Finle
78    return;    return;
79  }  }
80    
81    void Finley_ElementFile_setTagsInUse(Finley_ElementFile* in)
82    {
83        index_t *tagsInUse=NULL;
84        dim_t numTagsInUse;
85        if (in !=NULL) {
86           Finley_Util_setValuesInUse(in->Tag, in->numElements, &numTagsInUse, &tagsInUse, in->MPIInfo);
87           if (Finley_noError()) {
88              MEMFREE(in->tagsInUse);
89              in->tagsInUse=tagsInUse;
90              in->numTagsInUse=numTagsInUse;
91           }
92        }
93    }
94    
95  /*  deallocates the element table within an element file: */  /*  deallocates the element table within an element file: */
96    
97  void Finley_ElementFile_freeTable(Finley_ElementFile* in) {  void Finley_ElementFile_freeTable(Finley_ElementFile* in) {
# Line 84  void Finley_ElementFile_freeTable(Finley Line 100  void Finley_ElementFile_freeTable(Finley
100    MEMFREE(in->Nodes);    MEMFREE(in->Nodes);
101    MEMFREE(in->Tag);    MEMFREE(in->Tag);
102    MEMFREE(in->Color);    MEMFREE(in->Color);
103      MEMFREE(in->tagsInUse);
104      in->numTagsInUse=0;
105    in->numElements=0;    in->numElements=0;
106    in->maxColor=-1;    in->maxColor=-1;
107    in->minColor=0;    in->minColor=0;

Legend:
Removed from v.1780  
changed lines
  Added in v.1781

  ViewVC Help
Powered by ViewVC 1.1.26