openmsr / CAD_to_OpenMC

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

export to h5m does not fail when no hdf-libs are present. #48

Closed ebknudsen closed 1 year ago

ebknudsen commented 1 year ago

A file with a h5m-suffix is silently created which in fact is a vtk-file. This should at the least drop a warning.

ebknudsen commented 1 year ago

This happens when moab happens to be built without hdf5-support. CAD_to_OpenMC is not aware of this and just writes what it believes is a h5m-file. A warning/error should be issued.

ebknudsen commented 1 year ago

This was partially fixed by 33402f7 which will yield a warning after the h5m-file has been created.

ebknudsen commented 1 year ago

a94b1f0e1de343d2ebc62d92a3acfe5a9a7bcd77 fixes this completely