[MOAB-dev] r3438 - MOAB/trunk
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Tue Jan 19 14:23:28 CST 2010
Author: kraftche
Date: 2010-01-19 14:23:28 -0600 (Tue, 19 Jan 2010)
New Revision: 3438
Modified:
MOAB/trunk/WriteNCDF.cpp
Log:
correctly skip empty blocks
Modified: MOAB/trunk/WriteNCDF.cpp
===================================================================
--- MOAB/trunk/WriteNCDF.cpp 2010-01-19 18:17:23 UTC (rev 3437)
+++ MOAB/trunk/WriteNCDF.cpp 2010-01-19 20:23:28 UTC (rev 3438)
@@ -340,8 +340,6 @@
vector_iter= blocks.begin();
end_vector_iter = blocks.end();
- mesh_info.num_elementblocks = blocks.size();
-
std::vector<MBEntityHandle> parent_meshsets;
// clean out the bits for the element mark
@@ -483,6 +481,8 @@
}
+ mesh_info.num_elementblocks = block_info.size();
+
//if user hasn't entered dimension, we figure it out
if( mesh_info.num_dim == 0 )
{
More information about the moab-dev
mailing list