[MOAB-dev] r5758 - MOAB/trunk/src/io
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Thu Sep 27 15:29:19 CDT 2012
Author: iulian
Date: 2012-09-27 15:29:19 -0500 (Thu, 27 Sep 2012)
New Revision: 5758
Modified:
MOAB/trunk/src/io/ReadNC.cpp
MOAB/trunk/src/io/ReadNC.hpp
Log:
correct reading data in parallel for Homme grids, considering the
local range of the global id, for vertices.
Still, it does not work yet in parallel.
Also, reformat the code, I could not read it, it had lots of tabs
(so replace tabs with 2 spaces, and indentation is now at 2 spaces)
Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp 2012-09-27 16:41:29 UTC (rev 5757)
+++ MOAB/trunk/src/io/ReadNC.cpp 2012-09-27 20:29:19 UTC (rev 5758)
@@ -22,26 +22,23 @@
#define ERRORR(rval, str) \
if (MB_SUCCESS != rval) {readMeshIface->report_error("%s", str); return rval;}
-
+
#define ERRORS(err, str) \
if (err) {readMeshIface->report_error("%s", str); return MB_FAILURE;}
-
+
namespace moab {
-ReaderIface* ReadNC::factory( Interface* iface )
- { return new ReadNC( iface ); }
+ReaderIface* ReadNC::factory(Interface* iface) {
+ return new ReadNC(iface);
+}
-ReadNC::ReadNC(Interface* impl)
- : mbImpl(impl), CPU_WORD_SIZE(-1), IO_WORD_SIZE(-1), fileId(-1),
- tMin(-1), tMax(-1),
- iDim(-1), jDim(-1), tDim(-1), iCDim(-1), jCDim(-1),
- numUnLim(-1), mCurrentMeshHandle(0),
- startVertex(0), startElem(0), mGlobalIdTag(0),
- max_line_length(-1), max_str_length(-1), vertexOffset(0), dbgOut(stderr),
- isParallel(false), partMethod(-1), ucdMesh(false)
+ReadNC::ReadNC(Interface* impl) :
+ mbImpl(impl), CPU_WORD_SIZE(-1), IO_WORD_SIZE(-1), fileId(-1), tMin(-1), tMax(-1), iDim(-1), jDim(-1), tDim(-1), iCDim(-1),
+ jCDim(-1), numUnLim(-1), mCurrentMeshHandle(0), startVertex(0), startElem(0), mGlobalIdTag(0), max_line_length(-1),
+ max_str_length(-1), vertexOffset(0), dbgOut(stderr), isParallel(false), partMethod(-1), ucdMesh(false)
#ifdef USE_MPI
- , myPcomm(NULL)
+, myPcomm(NULL)
#endif
{
assert(impl != NULL);
@@ -52,15 +49,14 @@
gCDims[i] = -1;
lCDims[i] = -1;
}
-
+
locallyPeriodic[0] = locallyPeriodic[1] = 0;
globallyPeriodic[0] = globallyPeriodic[1] = 0;
-
+
More information about the moab-dev
mailing list