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

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

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

revision 3258 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 35  void  Finley_Mesh_resolveNodeIds(Finley_ Line 35  void  Finley_Mesh_resolveNodeIds(Finley_
35            *globalToNewLocalNodeLabels=NULL, *newLocalToGlobalNodeLabels=NULL;            *globalToNewLocalNodeLabels=NULL, *newLocalToGlobalNodeLabels=NULL;
36    dim_t len, n, newNumNodes, numDim;    dim_t len, n, newNumNodes, numDim;
37    Finley_NodeFile *newNodeFile=NULL;    Finley_NodeFile *newNodeFile=NULL;
38    #ifdef PASO_MPI    #ifdef ESYS_MPI
39    index_t id_range[2], global_id_range[2];    index_t id_range[2], global_id_range[2];
40    #endif    #endif
41    numDim=Finley_Mesh_getDim(in);    numDim=Finley_Mesh_getDim(in);
# Line 54  void  Finley_Mesh_resolveNodeIds(Finley_ Line 54  void  Finley_Mesh_resolveNodeIds(Finley_
54    Finley_ElementFile_setNodeRange(&min_id2,&max_id2,in->Points);    Finley_ElementFile_setNodeRange(&min_id2,&max_id2,in->Points);
55    max_id=MAX(max_id,max_id2);    max_id=MAX(max_id,max_id2);
56    min_id=MIN(min_id,min_id2);    min_id=MIN(min_id,min_id2);
57    #ifdef PASO_MPI    #ifdef ESYS_MPI
58       id_range[0]=-min_id;       id_range[0]=-min_id;
59       id_range[1]=max_id;       id_range[1]=max_id;
60       MPI_Allreduce( id_range, global_id_range, 2, MPI_INT, MPI_MAX, in->MPIInfo->comm );       MPI_Allreduce( id_range, global_id_range, 2, MPI_INT, MPI_MAX, in->MPIInfo->comm );

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26