[MOAB-dev] r4291 - MOAB/trunk/tools
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Fri Nov 19 11:33:51 CST 2010
Author: tautges
Date: 2010-11-19 11:33:51 -0600 (Fri, 19 Nov 2010)
New Revision: 4291
Modified:
MOAB/trunk/tools/size.cpp
Log:
Fixed double-counting of entities in neumann, dirichlet, and material sets.
Modified: MOAB/trunk/tools/size.cpp
===================================================================
--- MOAB/trunk/tools/size.cpp 2010-11-19 15:31:08 UTC (rev 4290)
+++ MOAB/trunk/tools/size.cpp 2010-11-19 17:33:51 UTC (rev 4291)
@@ -607,20 +607,22 @@
}
printf( "%s %d:\n", mesh_type_names[t], id );
- if (tag_count)
+ if (tag_count) {
rval = gather_tag_counts( *i, file_counts );
- else if (!just_list && !just_list_basic)
- rval = gather_set_stats( *i, file_stats );
- if (rval != gather_set_stats( *i, file_stats ))
- fprintf(stderr, "Error processing mesh from file: %s\n", f->c_str());
- else if (tag_count)
print_tag_counts( file_counts );
+ }
else if (just_list)
mb.list_entities( 0, 1 );
else if (just_list_basic)
mb.list_entities( 0, 0 );
- else
- print_stats( file_stats );
+ else if (!just_list && !just_list_basic) {
+ rval = gather_set_stats( *i, file_stats );
+
+ if (rval != MB_SUCCESS)
+ fprintf(stderr, "Error processing mesh from file: %s\n", f->c_str());
+ else
+ print_stats( file_stats );
+ }
file_stats.clear();
file_counts.clear();
}
More information about the moab-dev
mailing list