[cgma-dev] r5743 - cgm/trunk/itaps
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Sun Sep 16 11:18:28 CDT 2012
Author: iulian
Date: 2012-09-16 11:18:28 -0500 (Sun, 16 Sep 2012)
New Revision: 5743
Modified:
cgm/trunk/itaps/iGeom_CGMA.cc
Log:
there are more than 6 models in a cubit file 12.2 (7?), so it will crash
because of this array size; only in optimized mode though.
It is disconcerting that the crash showed up only much later on, in MeshKit. Maybe because
only in MeshKit we are using newer Cubit files?
Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc 2012-09-15 13:25:26 UTC (rev 5742)
+++ cgm/trunk/itaps/iGeom_CGMA.cc 2012-09-16 16:18:28 UTC (rev 5743)
@@ -6594,7 +6594,7 @@
int model_table_offset = header[3];
// get the model table
- int model_entries[36], model_offset[6],
+ int model_entries[42], model_offset[6],
model_length[6], model_type[6];
//if (num_models > 6) {
// ERROR(iBase_INVALID_ARGUMENT, "Too many models in .cub file.");
More information about the cgma-dev
mailing list