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

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

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

revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 20  Line 20 
20  /*  is deallocated. use Finley_Mesh_setLinearMesh to create a new one. */  /*  is deallocated. use Finley_Mesh_setLinearMesh to create a new one. */
21    
22  void Finley_NodeFile_allocTable(Finley_NodeFile* in ,int numNodes) {  void Finley_NodeFile_allocTable(Finley_NodeFile* in ,int numNodes) {
23    maybelong *Id2=NULL, *Tag2=NULL, *degreeOfFreedom2=NULL, *reducedDegreeOfFreedom2=NULL, *toReduced2=NULL;    index_t *Id2=NULL, *Tag2=NULL, *degreeOfFreedom2=NULL, *reducedDegreeOfFreedom2=NULL, *toReduced2=NULL;
24    double *Coordinates2=NULL;    double *Coordinates2=NULL;
25    maybelong n,i;    dim_t n,i;
26        
27    /*  allocate memory: */    /*  allocate memory: */
28        
29    Id2=MEMALLOC(numNodes,maybelong);    Id2=MEMALLOC(numNodes,index_t);
30    Coordinates2=MEMALLOC(numNodes*in->numDim,double);    Coordinates2=MEMALLOC(numNodes*in->numDim,double);
31    Tag2=MEMALLOC(numNodes,maybelong);    Tag2=MEMALLOC(numNodes,index_t);
32    degreeOfFreedom2=MEMALLOC(numNodes,maybelong);    degreeOfFreedom2=MEMALLOC(numNodes,index_t);
33    reducedDegreeOfFreedom2=MEMALLOC(numNodes,maybelong);    reducedDegreeOfFreedom2=MEMALLOC(numNodes,index_t);
34    toReduced2=MEMALLOC(numNodes,maybelong);    toReduced2=MEMALLOC(numNodes,index_t);
35        
36    /*  if fine, deallocate the old table and replace by new: */    /*  if fine, deallocate the old table and replace by new: */
37        
# Line 87  void Finley_NodeFile_deallocTable(Finley Line 87  void Finley_NodeFile_deallocTable(Finley
87  }  }
88  /*  /*
89  * $Log$  * $Log$
90    * Revision 1.5  2005/07/08 04:07:55  jgs
91    * Merge of development branch back to main trunk on 2005-07-08
92    *
93  * Revision 1.4  2004/12/15 07:08:33  jgs  * Revision 1.4  2004/12/15 07:08:33  jgs
94  * *** empty log message ***  * *** empty log message ***
95    * Revision 1.1.1.1.2.2  2005/06/29 02:34:54  gross
96    * some changes towards 64 integers in finley
97    *
98    * Revision 1.1.1.1.2.1  2004/11/24 01:37:15  gross
99    * some changes dealing with the integer overflow in memory allocation. Finley solves 4M unknowns now
100  *  *
101  *  *
102  *  *

Legend:
Removed from v.102  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26