[MOAB-dev] r5889 - MOAB/trunk/src/io

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Nov 28 18:11:52 CST 2012


Author: iulian
Date: 2012-11-28 18:11:52 -0600 (Wed, 28 Nov 2012)
New Revision: 5889

Modified:
   MOAB/trunk/src/io/ReadNC.cpp
Log:
remove the mbReads variable, that was used only in debug mode


Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp	2012-11-28 18:51:07 UTC (rev 5888)
+++ MOAB/trunk/src/io/ReadNC.cpp	2012-11-29 00:11:52 UTC (rev 5889)
@@ -1761,7 +1761,7 @@
             size_t nbDims=vdatas[i].readDims[t].size();
             // assume that the last dimension is for the ncol,
             // node varying variable
-            size_t mbReads = localGid.psize();
+
             size_t indexInFloatArray= 0;
             size_t ic=0;
             for (
@@ -1782,7 +1782,7 @@
               // next subrange
               indexInFloatArray+= (endh-starth+1)*1*vdatas[i].numLev; //
             }
-            assert(ic==mbReads);
+            assert(ic==localGid.psize());
             //
 
 
@@ -1906,7 +1906,7 @@
           size_t nbDims=vdatas[i].readDims[t].size();
           // assume that the last dimension is for the ncol,
           // node varying variable
-          size_t mbReads = localGid.psize();
+
           size_t indexInDoubleArray= 0;
           size_t ic=0;
           for (
@@ -1929,7 +1929,7 @@
             // next subrange
             indexInDoubleArray+= (endh-starth+1)*1*vdatas[i].numLev; //
           }
-          assert(ic==mbReads);
+          assert(ic==localGid.psize());
           //
           int success = ncmpi_wait_all(fileId, requests.size(), &requests[0], &statuss[0]);
           ERRORS(success, "Failed on wait_all.");
@@ -1956,7 +1956,7 @@
           size_t nbDims=vdatas[i].readDims[t].size();
           // assume that the last dimension is for the ncol,
           // node varying variable
-          size_t mbReads = localGid.psize();
+
           size_t indexInFloatArray= 0;
           size_t ic=0;
           for (
@@ -1979,7 +1979,7 @@
             // next subrange


More information about the moab-dev mailing list