[MOAB-dev] r5616 - MOAB/branches/NCparperiodic/src/io

xbxu at mcs.anl.gov xbxu at mcs.anl.gov
Fri Jun 29 13:16:04 CDT 2012


Author: xbxu
Date: 2012-06-29 13:16:04 -0500 (Fri, 29 Jun 2012)
New Revision: 5616

Modified:
   MOAB/branches/NCparperiodic/src/io/ReadNC.cpp
Log:
fix the read_nc test

Modified: MOAB/branches/NCparperiodic/src/io/ReadNC.cpp
===================================================================
--- MOAB/branches/NCparperiodic/src/io/ReadNC.cpp	2012-06-29 16:39:04 UTC (rev 5615)
+++ MOAB/branches/NCparperiodic/src/io/ReadNC.cpp	2012-06-29 18:16:04 UTC (rev 5616)
@@ -430,7 +430,11 @@
   ERRORR(rval, "Couldn't get vertex coordinate arrays.");
 
   int i, j, k, il, jl, kl, itmp;
-  int dil = lDims[3] - lDims[0] + 1;
+  int dil;
+  if (!locallyPeriodic[0] && globallyPeriodic[0] && lDims[3] > gDims[3])
+    dil = lDims[3] - lDims[0];
+  else
+    dil = lDims[3] - lDims[0] + 1;
   int djl = lDims[4] - lDims[1] + 1;
   int di = gDims[3] - gDims[0] + 1;
   int dj = gDims[4] - gDims[1] + 1;



More information about the moab-dev mailing list