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

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

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

revision 781 by bcumming, Mon May 15 04:09:52 2006 UTC revision 782 by bcumming, Tue Jul 18 00:47:47 2006 UTC
# Line 48  void Finley_NodeDistribution_addForward( Line 48  void Finley_NodeDistribution_addForward(
48        if( posDomain==-1 )        if( posDomain==-1 )
49        {            {    
50          posDomain = in->numNeighbours++;          posDomain = in->numNeighbours++;
51          MEMREALLOC( in->edges, in->numNeighbours, Finley_NodeGhostEdge* );                  MEMREALLOC( in->edges, in->numNeighbours, Finley_NodeGhostEdge* );
52          MEMREALLOC( in->neighbours, in->numNeighbours, index_t );                  MEMREALLOC( in->neighbours, in->numNeighbours, index_t );
53          if( Finley_checkPtr( in->edges ) || Finley_checkPtr( in->neighbours ) )          if( Finley_checkPtr( in->edges ) || Finley_checkPtr( in->neighbours ) )
54            return;            return;
55          in->edges[posDomain] = NULL;          in->edges[posDomain] = NULL;
# Line 91  void Finley_NodeDistribution_addBackward Line 91  void Finley_NodeDistribution_addBackward
91      /* we don't */      /* we don't */
92      else      else
93      {      {
94        posDomain = in->numNeighbours++;        posDomain = findInList( -1, in->neighbours, in->numNeighbours );
   
95        if( posDomain==-1 )        if( posDomain==-1 )
96        {            {    
97          posDomain = in->numNeighbours++;          posDomain = in->numNeighbours++;
98          MEMREALLOC( in->edges, in->numNeighbours, Finley_NodeGhostEdge* );                  MEMREALLOC( in->edges, in->numNeighbours, Finley_NodeGhostEdge* );
99          MEMREALLOC( in->neighbours, in->numNeighbours, index_t );                  MEMREALLOC( in->neighbours, in->numNeighbours, index_t );
100          if( Finley_checkPtr( in->edges ) || Finley_checkPtr( in->neighbours ) )          if( Finley_checkPtr( in->edges ) || Finley_checkPtr( in->neighbours ) )
101            return;            return;
102          in->edges[posDomain] = NULL;          in->edges[posDomain] = NULL;

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

  ViewVC Help
Powered by ViewVC 1.1.26