-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
Description
I've gotten many queries over time regarding DAGMC file loading errors like the one below that turn out to be MOAB built without HDF5 enabled. Granted, if one runs the DAGMC tests this will be evident before trying to run transport problems, but in the interest of catching a problem like this as early as possible it would be nice if we checked the MOAB_USE_HDF5 variable in MOAB's installed CMake configuration file and report an error or warning, whichever we deem appropriate.
Reading model XML file 'model.xml' ...
Reading cross sections XML file...
Loading file dagmc.h5m
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Expected Keyword!
MOAB ERROR: load_file() line 178 in ReadABAQUS.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Invalid/unrecognized line!
MOAB ERROR: load_file() line 253 in ReadOBJ.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: This doesn't appear to be a .cub file!
MOAB ERROR: load_file() line 327 in Tqdcfr.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Parsing error at line 1: expected one of { $NOD $MeshFormat } got "?HDF"!
MOAB ERROR: match_token() line 367 in FileTokenizer.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: dagmc.h5m.node: cannot read file!
MOAB ERROR: open_file() line 60 in ReadTetGen.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: dagmc.h5m: Trouble reading vertices!
MOAB ERROR: read_vertices() line 139 in ReadTemplate.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to load file after trying all possible readers!
MOAB ERROR: serial_load_file() line 588 in Core.cpp
MOAB ERROR: load_file() line 471 in Core.cpp
ERROR: DagMC Couldn't read file dagmc.h5m
Error message: Failed to load file after trying all possible readers
MOAB ERROR: init_dagmc() line 157 in dagmc.cpp
Building acceleration data structures...
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to join the obb trees!
MOAB ERROR: construct_obb_tree() line 491 in GeomTopoTool.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to construct obb tree for volume!
MOAB ERROR: construct_obb_trees() line 591 in GeomTopoTool.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to build obb trees!
MOAB ERROR: setup_obbs() line 204 in DagMC.cpp
MOAB ERROR: --------------------- Error Message ------------------------------------
MOAB ERROR: Failed to setup the OBBs!
MOAB ERROR: init_OBBTree() line 685 in DagMC.cpp
MOAB ERROR: init_dagmc() line 161 in dagmc.cpp