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

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

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

revision 6140 by caltinay, Sun Apr 3 23:36:59 2016 UTC revision 6141 by caltinay, Wed Apr 6 03:51:30 2016 UTC
# Line 25  Line 25 
25  #include "Mesh.h"  #include "Mesh.h"
26  #include "IndexList.h"  #include "IndexList.h"
27    
28  #ifdef USE_PARMETIS  #ifdef ESYS_HAVE_PARMETIS
29  #include <parmetis.h>  #include <parmetis.h>
30  #ifndef REALTYPEWIDTH  #ifndef REALTYPEWIDTH
31  typedef float real_t;  typedef float real_t;
# Line 37  typedef float real_t; Line 37  typedef float real_t;
37    
38  namespace finley {  namespace finley {
39    
40  #ifdef USE_PARMETIS  #ifdef ESYS_HAVE_PARMETIS
41  // Checks whether there is any rank which has no vertex. In case  // Checks whether there is any rank which has no vertex. In case
42  // such a rank exists, we don't use parmetis since parmetis requires  // such a rank exists, we don't use parmetis since parmetis requires
43  // that every rank has at least 1 vertex (at line 129 of file  // that every rank has at least 1 vertex (at line 129 of file
# Line 84  void Mesh::optimizeDOFDistribution(std:: Line 84  void Mesh::optimizeDOFDistribution(std::
84          len=std::max(len, distribution[p+1]-distribution[p]);          len=std::max(len, distribution[p+1]-distribution[p]);
85      std::vector<index_t> partition(len);      std::vector<index_t> partition(len);
86    
87  #ifdef USE_PARMETIS  #ifdef ESYS_HAVE_PARMETIS
88      if (mpiSize>1 && allRanksHaveNodes(MPIInfo, distribution)) {      if (mpiSize>1 && allRanksHaveNodes(MPIInfo, distribution)) {
89          boost::scoped_array<IndexList> index_list(new IndexList[myNumVertices]);          boost::scoped_array<IndexList> index_list(new IndexList[myNumVertices]);
90          int dim=Nodes->numDim;          int dim=Nodes->numDim;

Legend:
Removed from v.6140  
changed lines
  Added in v.6141

  ViewVC Help
Powered by ViewVC 1.1.26