[MOAB-dev] r2647 - MOAB/trunk

janehu at mcs.anl.gov janehu at mcs.anl.gov
Wed Feb 18 15:00:01 CST 2009


Author: janehu
Date: 2009-02-18 15:00:01 -0600 (Wed, 18 Feb 2009)
New Revision: 2647

Modified:
   MOAB/trunk/ReadNCDF.cpp
Log:
If the update exodus is 2-d, then update the coordinates at z direction to 0.0.

Modified: MOAB/trunk/ReadNCDF.cpp
===================================================================
--- MOAB/trunk/ReadNCDF.cpp	2009-02-18 20:51:53 UTC (rev 2646)
+++ MOAB/trunk/ReadNCDF.cpp	2009-02-18 21:00:01 UTC (rev 2647)
@@ -2134,6 +2134,9 @@
     if(numberDimensions_loading == 3 )
       coords[2] = orig_coords[2][i] + deformed_arrays[2][i];
 
+    else
+      coords[2] = 0.0;
+
     mdbImpl->set_coords(entities, coords);
   }
   return MB_SUCCESS;



More information about the moab-dev mailing list