[MOAB-dev] r3307 - MOAB/trunk
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Mon Nov 9 09:28:21 CST 2009
Author: kraftche
Date: 2009-11-09 09:28:21 -0600 (Mon, 09 Nov 2009)
New Revision: 3307
Modified:
MOAB/trunk/WriteVtk.cpp
Log:
return failure rather than skipping the element if VTK format doesn't support element type: skiping the element results in an invalid elem count for the file (invalid file)
Modified: MOAB/trunk/WriteVtk.cpp
===================================================================
--- MOAB/trunk/WriteVtk.cpp 2009-11-09 15:27:29 UTC (rev 3306)
+++ MOAB/trunk/WriteVtk.cpp 2009-11-09 15:28:21 UTC (rev 3307)
@@ -285,7 +285,7 @@
writeTool->report_error( "Vtk file format does not support elements "
"of type %s (%d) with %d nodes.\n", MBCN::EntityTypeName(type),
(int)type, conn_len);
- continue;
+ return MB_FAILURE;
}
// Get IDs from vertex handles
More information about the moab-dev
mailing list