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

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

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

revision 969 by ksteube, Tue Feb 13 23:02:23 2007 UTC revision 971 by ksteube, Wed Feb 14 04:40:49 2007 UTC
# Line 7  void Finley_NodeDistribution_calculateIn Line 7  void Finley_NodeDistribution_calculateIn
7    index_t *buffer=NULL;    index_t *buffer=NULL;
8    dim_t bufferLength=0;    dim_t bufferLength=0;
9    
10    for( n=0; n<Distribution->numNeighbours; n++ ) {    for( n=0; n<Distribution->numNeighbours; n++ )
11      if( Distribution->edges[n]->numForward>bufferLength )      if( Distribution->edges[n]->numForward>bufferLength )
12        bufferLength = Distribution->edges[n]->numForward;        bufferLength = Distribution->edges[n]->numForward;
13      if( Distribution->edges[n]->numBackward>bufferLength )      else if( Distribution->edges[n]->numBackward>bufferLength )
14        bufferLength = Distribution->edges[n]->numBackward;        bufferLength = Distribution->edges[n]->numBackward;
   }  
15    
16    buffer = TMPMEMALLOC( bufferLength, index_t );    buffer = TMPMEMALLOC( bufferLength, index_t );
17    

Legend:
Removed from v.969  
changed lines
  Added in v.971

  ViewVC Help
Powered by ViewVC 1.1.26