openmsr / CAD_to_OpenMC

code to target the conversion from a step-file to a h5m-geometry for neutronics
MIT License
27 stars 18 forks source link

need HDF5 flag for moab #49

Closed LukeLabrie closed 12 months ago

LukeLabrie commented 1 year ago

Was setting up CAD_to_OpenMC in an isolated environment. Following the steps in the readme and got

print(f'ERROR: generated file {h5mfile} does not appear to be a hdf-file. Did you compile the moab libs with HDF enabled?')

I think the -DENABLE_HDF5=1 flag be added to the instructions in the readme maybe? This solved the issue for me.

ebknudsen commented 1 year ago

This is in fact the same thing as #48. CAD_to_OpenMC should somehow detect the lack of hdf5-libraries, and at the very least issue a warning that the output file is in fact in vtk-format even though it is named h5m.

ebknudsen commented 12 months ago

fixed