/[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 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2008 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  /**************************************************************/  /**************************************************************/
16    
# Line 21  Line 20 
20    
21  /**************************************************************/  /**************************************************************/
22    
23    
24  #include "ElementFile.h"  #include "ElementFile.h"
25    #include "Util.h"
26    
27  /****************************************************************************/  /****************************************************************************/
28    
# Line 76  void Finley_ElementFile_allocTable(Finle Line 77  void Finley_ElementFile_allocTable(Finle
77    return;    return;
78  }  }
79    
80    void Finley_ElementFile_setTagsInUse(Finley_ElementFile* in)
81    {
82        index_t *tagsInUse=NULL;
83        dim_t numTagsInUse;
84        if (in !=NULL) {
85           Finley_Util_setValuesInUse(in->Tag, in->numElements, &numTagsInUse, &tagsInUse, in->MPIInfo);
86           if (Finley_noError()) {
87              MEMFREE(in->tagsInUse);
88              in->tagsInUse=tagsInUse;
89              in->numTagsInUse=numTagsInUse;
90           }
91        }
92    }
93    
94  /*  deallocates the element table within an element file: */  /*  deallocates the element table within an element file: */
95    
96  void Finley_ElementFile_freeTable(Finley_ElementFile* in) {  void Finley_ElementFile_freeTable(Finley_ElementFile* in) {
# Line 84  void Finley_ElementFile_freeTable(Finley Line 99  void Finley_ElementFile_freeTable(Finley
99    MEMFREE(in->Nodes);    MEMFREE(in->Nodes);
100    MEMFREE(in->Tag);    MEMFREE(in->Tag);
101    MEMFREE(in->Color);    MEMFREE(in->Color);
102      MEMFREE(in->tagsInUse);
103      in->numTagsInUse=0;
104    in->numElements=0;    in->numElements=0;
105    in->maxColor=-1;    in->maxColor=-1;
106    in->minColor=0;    in->minColor=0;

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

  ViewVC Help
Powered by ViewVC 1.1.26