[MOAB-dev] commit/MOAB: iulian07: fix parallel builds configured without mbzoltan
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun Oct 20 09:34:22 CDT 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/8dbdd2de6148/
Changeset: 8dbdd2de6148
Branch: master
User: iulian07
Date: 2013-10-20 16:32:07
Summary: fix parallel builds configured without mbzoltan
if build in parallel, without zoltan, the guards will allow only trivial
partition for MPAS meshes
Affected #: 1 file
diff --git a/src/io/NCHelperMPAS.cpp b/src/io/NCHelperMPAS.cpp
index 35fdb2b..497c7f1 100644
--- a/src/io/NCHelperMPAS.cpp
+++ b/src/io/NCHelperMPAS.cpp
@@ -302,6 +302,7 @@ ErrorCode NCHelperMPAS::create_mesh(Range& faces)
#ifdef USE_MPI
+#ifdef HAVE_ZOLTAN
int& partMethod = _readNC->partMethod;
if (partMethod==ScdParData::RCBZOLTAN && procs >=2) // it does not make sense to partition
// if the number of processors is less than 2; trivial partition is good enough
@@ -331,12 +332,16 @@ ErrorCode NCHelperMPAS::create_mesh(Range& faces)
nLocalCells = localGidCells.size();
}
else {
-#endif /* use mpi */
+#endif /* this is end for HAVE_ZOLTAN */
+#endif /* if use mpi */
+ /* without zoltan, only trivial partition is possible */
start_cell_idx++; // 0 based -> 1 based
localGidCells.insert(start_cell_idx, start_cell_idx + nLocalCells - 1);
#ifdef USE_MPI
+#ifdef HAVE_ZOLTAN
}
-#endif
+#endif /* end for HAVE_ZOLTAN */
+#endif /* end for USE_MPI */
// Read number of edges on each local cell, to calculate actual maxEdgesPerCell
int nEdgesOnCellVarId;
int success = NCFUNC(inq_varid)(_fileId, "nEdgesOnCell", &nEdgesOnCellVarId);
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list