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

xbxu at mcs.anl.gov xbxu at mcs.anl.gov
Fri Jun 22 17:07:49 CDT 2012


Author: xbxu
Date: 2012-06-22 17:07:49 -0500 (Fri, 22 Jun 2012)
New Revision: 5587

Modified:
   MOAB/trunk/src/io/ReadNC.cpp
Log:
fix the failure of read_nc test

Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp	2012-06-22 21:49:51 UTC (rev 5586)
+++ MOAB/trunk/src/io/ReadNC.cpp	2012-06-22 22:07:49 UTC (rev 5587)
@@ -1424,7 +1424,10 @@
   // if serial, use a locally-periodic representation only if local mesh is periodic, otherwise don't
   if ((myPcomm->proc_config().proc_size() == 1) && gperiodic_i)
     lperiodic_i = true;
-#endif  
+#else
+  if (gperiodic_i)
+    lperiodic_i = true;
+#endif
 
   if ((vit = std::find(dimNames.begin(), dimNames.end(), "lat")) != dimNames.end()) 
     idx = vit-dimNames.begin();
@@ -1720,7 +1723,10 @@
   // if serial, use a locally-periodic representation only if local mesh is periodic, otherwise don't
   if ((myPcomm->proc_config().proc_size() == 1) && gperiodic_i)
     lperiodic_i = true;
-#endif  
+#else
+  if (gperiodic_i)
+    lperiodic_i = true;
+#endif
 
   if ((vit = std::find(dimNames.begin(), dimNames.end(), "lat")) != dimNames.end()) 
     idx = vit-dimNames.begin();

























More information about the moab-dev mailing list