[MOAB-dev] r3437 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Jan 19 12:17:23 CST 2010


Author: kraftche
Date: 2010-01-19 12:17:23 -0600 (Tue, 19 Jan 2010)
New Revision: 3437

Modified:
   MOAB/trunk/WriteNCDF.cpp
Log:
if data contains blocks with no elements, skip them rather htan failing when writing ExodusII file

Modified: MOAB/trunk/WriteNCDF.cpp
===================================================================
--- MOAB/trunk/WriteNCDF.cpp	2010-01-19 18:07:21 UTC (rev 3436)
+++ MOAB/trunk/WriteNCDF.cpp	2010-01-19 18:17:23 UTC (rev 3437)
@@ -369,6 +369,9 @@
     if (MB_SUCCESS != rval)
       return rval;
 
+    // skip empty blocks
+    if (dummy_range.empty())
+      continue;
 
     // wait a minute, we are doing some filtering here that doesn't make sense at this level  CJS
 



More information about the moab-dev mailing list