Open rem1776 opened 5 months ago
@rem1776 - do we have a unit test we can use to target this particular file directly to see if there is some attribute or data element in the file that it is complaining about?
@bensonr I know the test test_fms/mosaic2/test_grid2.F90
tests this module specifically. It creates a grid_spec.nc as well as the other input files needed and read them in as part of the test. There's a few other tests that also do the same in fms2_io, data_overide and the coupler. They all read in and check specific files though, so I'm not sure how useful that is.
So far I tried a very simple test, using a program with just fms_init
and fms_end
calls and then ran with the coupler null test's input files. It was able read them in without issue.
Looks like the problem here is the hdf5 update, after talking to Marshall he referred me to this issue: https://github.com/HDFGroup/hdf5/issues/3831
It's specific to hdf5 1.14.3 and should be fixed in the next release, scheduled for the end of march.
I'm gonna transfer this and edit the original message since this is more of a FMS problem, just happened to come up here.
once the next version of hdf5 is released, we'll update and test
This first came up in the coupler's null model build (see below) but applies to FMS in general.
When using the latest hdf5 (1.14.3) FPE's occur during netcdf open calls if you compile with the floating point exception trapping flag (ie.
-ftrapuv
which is in our debug flags for mkmf). This is due to changes in hdf5 and is specific to version 1.14.3. There is a fix in hdf5's dev branch and the next scheduled release is for end of march.**old issue** While updating the CI container, I found that the null model test was failing with a runtime error when compiled with the latest hdf5 version (1.14.3) and netcdf version (4.9.2) with gcc 13.
I reproduced the error on the AMD dev box with both gcc 13 and the latest oneapi (2024.0), so it doesn't seem compiler-specific.
It happens when trying to open the grid_spec.nc as part of
fms_init
, usingopen_file
from fms2_io.