[MOAB-dev] r4264 - MOAB/trunk/tools/dagmc
sjackson at cae.wisc.edu
sjackson at cae.wisc.edu
Fri Nov 12 12:45:21 CST 2010
Author: sjackson
Date: 2010-11-12 12:45:20 -0600 (Fri, 12 Nov 2010)
New Revision: 4264
Modified:
MOAB/trunk/tools/dagmc/DagMC.cpp
Log:
Make DagMC print more details when a file loading error occurs.
Also remove an outdated and confusing comment.
Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp 2010-11-11 23:44:56 UTC (rev 4263)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp 2010-11-12 18:45:20 UTC (rev 4264)
@@ -161,7 +161,6 @@
sprintf(facetTolStr,"%g",facetingTolerance);
- // what if we are using default faceting tolerance???
char options[120] = "CGM_ATTRIBS=yes;FACET_DISTANCE_TOLERANCE=";
strcat(options,facetTolStr);
@@ -182,6 +181,10 @@
}
else if (MB_SUCCESS != rval) {
std::cerr << "DagMC Couldn't read file " << cfile << std::endl;
+ std::string message;
+ if (MB_SUCCESS == MBI->get_last_error(message) && !message.empty())
+ std::cerr << "Error message: " << message << std::endl;
+
return rval;
}
More information about the moab-dev
mailing list