/[escript]/trunk/finley/src/NodeFile.cpp
ViewVC logotype

Diff of /trunk/finley/src/NodeFile.cpp

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

revision 616 by elspeth, Wed Mar 22 02:46:56 2006 UTC revision 730 by bcumming, Mon May 15 04:03:49 2006 UTC
# Line 29  Line 29 
29    
30  /*   allocates a node file to hold nodes */  /*   allocates a node file to hold nodes */
31  /*   use Finley_NodeFile_allocTable to allocate the node table (Id,Coordinatess). */  /*   use Finley_NodeFile_allocTable to allocate the node table (Id,Coordinatess). */
32    #ifdef PASO_MPI
33  Finley_NodeFile* Finley_NodeFile_alloc(int numDim){  Finley_NodeFile* Finley_NodeFile_alloc(dim_t numDim, Paso_MPIInfo *MPIInfo){
34    #else
35    Finley_NodeFile* Finley_NodeFile_alloc(dim_t numDim){
36    #endif
37    Finley_NodeFile *out;    Finley_NodeFile *out;
38        
39    /*  allocate the return value */    /*  allocate the return value */
# Line 48  Finley_NodeFile* Finley_NodeFile_alloc(i Line 51  Finley_NodeFile* Finley_NodeFile_alloc(i
51    out->degreeOfFreedom=NULL;    out->degreeOfFreedom=NULL;
52    out->reducedDegreeOfFreedom=NULL;    out->reducedDegreeOfFreedom=NULL;
53    out->toReduced=NULL;    out->toReduced=NULL;
54    #ifdef PASO_MPI
55      out->MPIInfo = Paso_MPIInfo_getReference( MPIInfo );
56      out->degreeOfFreedomDistribution = Finley_NodeDistribution_alloc( MPIInfo );
57    #endif
58    return out;    return out;
59  }  }
60    
# Line 58  void Finley_NodeFile_dealloc(Finley_Node Line 65  void Finley_NodeFile_dealloc(Finley_Node
65       #ifdef Finley_TRACE       #ifdef Finley_TRACE
66       printf("node file is deallocated.\n");       printf("node file is deallocated.\n");
67       #endif       #endif
68       Finley_NodeFile_deallocTable(in);         Finley_NodeFile_deallocTable(in);
69    #ifdef PASO_MPI
70         Paso_MPIInfo_dealloc( in->MPIInfo );
71         Finley_NodeDistribution_dealloc( in->degreeOfFreedomDistribution );
72    #endif
73       MEMFREE(in);             MEMFREE(in);      
74    }    }
75  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26