/[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 729 by elspeth, Wed Mar 22 02:46:56 2006 UTC revision 730 by bcumming, Mon May 15 04:03:49 2006 UTC
# Line 28  Line 28 
28  /*  allocates the node table within an node file to hold numNodes of nodes. The LinearTo mapping, if it exists, */  /*  allocates the node table within an node file to hold numNodes of nodes. The LinearTo mapping, if it exists, */
29  /*  is deallocated. use Finley_Mesh_setLinearMesh to create a new one. */  /*  is deallocated. use Finley_Mesh_setLinearMesh to create a new one. */
30    
31  void Finley_NodeFile_allocTable(Finley_NodeFile* in ,int numNodes) {  #ifdef PASO_MPI
32    void Finley_NodeFile_allocTable( Finley_NodeFile* in, dim_t numNodes )
33    #else
34    void Finley_NodeFile_allocTable(Finley_NodeFile* in ,dim_t numNodes)
35    #endif
36    {
37    index_t *Id2=NULL, *Tag2=NULL, *degreeOfFreedom2=NULL, *reducedDegreeOfFreedom2=NULL, *toReduced2=NULL;    index_t *Id2=NULL, *Tag2=NULL, *degreeOfFreedom2=NULL, *reducedDegreeOfFreedom2=NULL, *toReduced2=NULL;
38    double *Coordinates2=NULL;    double *Coordinates2=NULL;
39    dim_t n,i;    dim_t n,i;
40        
41    /*  allocate memory: */    /*  allocate memory: */
     
42    Id2=MEMALLOC(numNodes,index_t);    Id2=MEMALLOC(numNodes,index_t);
43    Coordinates2=MEMALLOC(numNodes*in->numDim,double);    Coordinates2=MEMALLOC(numNodes*in->numDim,double);
44    Tag2=MEMALLOC(numNodes,index_t);    Tag2=MEMALLOC(numNodes,index_t);

Legend:
Removed from v.729  
changed lines
  Added in v.730

  ViewVC Help
Powered by ViewVC 1.1.26