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

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

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

revision 731 by bcumming, Mon May 15 04:09:52 2006 UTC revision 787 by bcumming, Wed Jul 26 01:46:45 2006 UTC
# Line 4  Line 4 
4    
5  #ifdef PASO_MPI  #ifdef PASO_MPI
6    
 /*  
 struct Finley_ElementDistribution  
 {  
   dim_t reference_counter;  
   Paso_MPIInfo *MPIInfo;  
   index_t numLocal;      
   index_t numInternal;      
   index_t numBoundary;      
   index_t numNeighbours;  
   index_t *neighbours;      
 };  
 */  
   
7  Finley_ElementDistribution* Finley_ElementDistribution_alloc( Paso_MPIInfo *MPIInfo )  Finley_ElementDistribution* Finley_ElementDistribution_alloc( Paso_MPIInfo *MPIInfo )
8  {  {
9    Finley_ElementDistribution *out = NULL;    Finley_ElementDistribution *out = NULL;
# Line 29  Finley_ElementDistribution* Finley_Eleme Line 16  Finley_ElementDistribution* Finley_Eleme
16    out->numLocal = 0;    out->numLocal = 0;
17    out->numInternal = 0;    out->numInternal = 0;
18    out->numBoundary = 0;    out->numBoundary = 0;
19    //out->numNeighbours = 0;      out->vtxdist = NULL;
   //out->neighbours = NULL;  
20        
21        out->MPIInfo = Paso_MPIInfo_getReference( MPIInfo );
22    out->reference_counter++;    out->reference_counter++;
23    
24    return out;    return out;
# Line 42  void Finley_ElementDistribution_dealloc( Line 29  void Finley_ElementDistribution_dealloc(
29    if( in && !(--in->reference_counter) )    if( in && !(--in->reference_counter) )
30    {    {
31      Paso_MPIInfo_dealloc( in->MPIInfo );      Paso_MPIInfo_dealloc( in->MPIInfo );
32      //MEMFREE( in->neighbours );      MEMFREE( in->vtxdist );
33    
34      MEMFREE( in );      MEMFREE( in );
35    }    }

Legend:
Removed from v.731  
changed lines
  Added in v.787

  ViewVC Help
Powered by ViewVC 1.1.26