[MOAB-dev] r5628 - MOAB/trunk/src/io
xbxu at mcs.anl.gov
xbxu at mcs.anl.gov
Mon Jul 9 15:29:07 CDT 2012
Author: xbxu
Date: 2012-07-09 15:29:06 -0500 (Mon, 09 Jul 2012)
New Revision: 5628
Modified:
MOAB/trunk/src/io/ReadNC.cpp
Log:
fix the serial build
Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp 2012-07-09 19:58:46 UTC (rev 5627)
+++ MOAB/trunk/src/io/ReadNC.cpp 2012-07-09 20:29:06 UTC (rev 5628)
@@ -762,10 +762,12 @@
quads.psize() == 1);
//quads_handles.resize(quads.size());
//std::copy(quads.begin(), quads.end(), quads_handles.begin());
+#ifdef USE_MPI
moab::Range quads_owned;
rval = myPcomm->filter_pstatus(quads, PSTATUS_NOT_OWNED, PSTATUS_NOT, -1,
&quads_owned);
ERRORR(rval, "Trouble getting owned quads in set.");
+#endif
for (unsigned int i = 0; i < vdatas.size(); i++) {
for (unsigned int t = 0; t < tstep_nums.size(); t++) {
@@ -861,7 +863,11 @@
vdatas[i].readCounts[t].push_back(lCDims[4]-lCDims[1]+1);
vdatas[i].readCounts[t].push_back(lCDims[3]-lCDims[0]+1);
assert(vdatas[i].readDims[t].size() == vdatas[i].varDims.size());
+#ifdef USE_MPI
range = &quads_owned;
+#else
+ range = &quads;
+#endif
break;
case 4:
// set
More information about the moab-dev
mailing list