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

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

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

revision 781 by bcumming, Mon Jun 26 01:46:34 2006 UTC revision 782 by bcumming, Tue Jul 18 00:47:47 2006 UTC
# Line 16  void Finley_NodeDistribution_allocTable( Line 16  void Finley_NodeDistribution_allocTable(
16    if( Finley_checkPtr(in) )    if( Finley_checkPtr(in) )
17      return;      return;
18    
19    if( numNeighbours )      neighbours = numNeighbours ? MEMALLOC( numNeighbours, index_t ) : NULL;
20    {      edges      = numNeighbours ? MEMALLOC( numNeighbours, Finley_NodeGhostEdge* ) : NULL;
     neighbours = MEMALLOC( numNeighbours, index_t );  
     edges      = MEMALLOC( numNeighbours, Finley_NodeGhostEdge* );  
   }  
21    vtxdist = MEMALLOC( in->MPIInfo->size+1, index_t );    vtxdist = MEMALLOC( in->MPIInfo->size+1, index_t );
22    indexExternal = MEMALLOC( numExternal, index_t );      indexExternal = numExternal ? MEMALLOC( numExternal, index_t ) : NULL;
23            
24    if( (numNeighbours && ( Finley_checkPtr(neighbours) || Finley_checkPtr(edges) )) || Finley_checkPtr(vtxdist) || Finley_checkPtr(indexExternal) )    if( (numNeighbours && ( Finley_checkPtr(neighbours) || Finley_checkPtr(edges) )) || Finley_checkPtr(vtxdist) || (numExternal &&  Finley_checkPtr(indexExternal)) )
25    {    {
26      MEMFREE( neighbours );      MEMFREE( neighbours );
27      MEMFREE( edges );      MEMFREE( edges );

Legend:
Removed from v.781  
changed lines
  Added in v.782

  ViewVC Help
Powered by ViewVC 1.1.26