/[escript]/trunk/finley/src/Mesh_prepare.cpp
ViewVC logotype

Diff of /trunk/finley/src/Mesh_prepare.cpp

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

revision 4327 by jfenwick, Wed Mar 20 05:09:11 2013 UTC revision 4345 by jfenwick, Fri Mar 29 07:09:41 2013 UTC
# Line 42  void Finley_Mesh_prepare(Finley_Mesh* in Line 42  void Finley_Mesh_prepare(Finley_Mesh* in
42          newGlobalNumDOFs=Finley_NodeFile_createDenseDOFLabeling(in->Nodes);          newGlobalNumDOFs=Finley_NodeFile_createDenseDOFLabeling(in->Nodes);
43    
44          /* create a distribution of the global DOFs and determine          /* create a distribution of the global DOFs and determine
45             the MPI_rank controling the DOFs on this processor      */             the MPI_rank controlling the DOFs on this processor      */
46          Esys_MPIInfo_setDistribution(in->MPIInfo,0,newGlobalNumDOFs-1,distribution);          Esys_MPIInfo_setDistribution(in->MPIInfo,0,newGlobalNumDOFs-1,distribution);
47    
48          /* now the mesh is re-distributed according to the mpiRankOfDOF vector */          /* now the mesh is re-distributed according to the mpiRankOfDOF vector */
# Line 57  void Finley_Mesh_prepare(Finley_Mesh* in Line 57  void Finley_Mesh_prepare(Finley_Mesh* in
57           Finley_Mesh_optimizeDOFDistribution(in,distribution);           Finley_Mesh_optimizeDOFDistribution(in,distribution);
58           if (Finley_noError()) Finley_Mesh_distributeByRankOfDOF(in,distribution);           if (Finley_noError()) Finley_Mesh_distributeByRankOfDOF(in,distribution);
59       }       }
60       /* the local labeling of the degrees of freedom is optimized */       /* the local labelling of the degrees of freedom is optimized */
61       if (Finley_noError() && optimize) {       if (Finley_noError() && optimize) {
62         Finley_Mesh_optimizeDOFLabeling(in,distribution);         Finley_Mesh_optimizeDOFLabeling(in,distribution);
63       }       }

Legend:
Removed from v.4327  
changed lines
  Added in v.4345

  ViewVC Help
Powered by ViewVC 1.1.26