/[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 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3639 by caltinay, Tue Oct 25 02:13:26 2011 UTC
# Line 45  void Finley_Mesh_prepare(Finley_Mesh* in Line 45  void Finley_Mesh_prepare(Finley_Mesh* in
45    
46          /* now the mesh is re-distributed according to the mpiRankOfDOF vector */          /* now the mesh is re-distributed according to the mpiRankOfDOF vector */
47          /* this will redistribute the Nodes and Elements including overlap and will create an element coloring          /* this will redistribute the Nodes and Elements including overlap and will create an element coloring
48             but will not create any mappings (see later in this function)                                   */             but will not create any mappings (see later in this function) */
49          if (Finley_noError()) Finley_Mesh_distributeByRankOfDOF(in,distribution);          if (Finley_noError()) Finley_Mesh_distributeByRankOfDOF(in,distribution);
50       }       }
51    
52       /* at this stage we are able to start an optimization of the DOF distribution using ParaMetis */       /* at this stage we are able to start an optimization of the DOF distribution using ParMetis */
53       /* on return distribution is altered and new DOF ids have been assigned */       /* on return distribution is altered and new DOF ids have been assigned */
54       if (Finley_noError() && optimize && in->MPIInfo->size>1) {       if (Finley_noError() && optimize && in->MPIInfo->size>1) {
55           Finley_Mesh_optimizeDOFDistribution(in,distribution);           Finley_Mesh_optimizeDOFDistribution(in,distribution);
56           if (Finley_noError()) Finley_Mesh_distributeByRankOfDOF(in,distribution);           if (Finley_noError()) Finley_Mesh_distributeByRankOfDOF(in,distribution);
57       }       }
58       /* the local labeling of the degrees of free is optimized */       /* the local labeling of the degrees of freedom is optimized */
59       if (Finley_noError() && optimize) {       if (Finley_noError() && optimize) {
60         Finley_Mesh_optimizeDOFLabeling(in,distribution);         Finley_Mesh_optimizeDOFLabeling(in,distribution);
61       }       }

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

  ViewVC Help
Powered by ViewVC 1.1.26