From 4c832f9299dc48977015bf6a3a27c4443a6e98e2 Mon Sep 17 00:00:00 2001 From: Ryan Mulhall Date: Tue, 23 Apr 2024 13:38:18 -0400 Subject: [PATCH 1/2] change netcdf call to create instead of open --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cd6449372..30e94759f 100644 --- a/configure.ac +++ b/configure.ac @@ -265,7 +265,7 @@ AC_MSG_CHECKING([if HDF5 version causes floating point exceptions with set flags AC_RUN_IFELSE([AC_LANG_PROGRAM([], [[ use netcdf integer i, j - j = nf90_open("test.nc", NC_WRITE, i) + j = nf90_create("test.nc", NC_WRITE, i) ]])], [hdf5_fpe_bug=no], [hdf5_fpe_bug=yes]) AC_MSG_RESULT([$hdf5_fpe_bug]) if test $hdf5_fpe_bug = yes; then From b973f20b3d877022eb50e409c72e1f3dd3111175 Mon Sep 17 00:00:00 2001 From: rem1776 Date: Wed, 24 Apr 2024 13:47:15 -0400 Subject: [PATCH 2/2] fix leftover file and sneak in a distcheck fix --- Makefile.am | 4 ++-- test_fms/monin_obukhov/test_monin_obukhov2.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 22fb68f97..f9a8211f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -125,10 +125,10 @@ check-code-coverage: check .PHONY: check-code-coverage clean-local: - -rm -rf .mods coverage-data coverage-report + -rm -rf .mods coverage-data coverage-report test.nc else clean-local: - -rm -rf .mods + -rm -rf .mods test.nc endif install-data-hook: diff --git a/test_fms/monin_obukhov/test_monin_obukhov2.sh b/test_fms/monin_obukhov/test_monin_obukhov2.sh index 72a5f9b3f..c125164c9 100755 --- a/test_fms/monin_obukhov/test_monin_obukhov2.sh +++ b/test_fms/monin_obukhov/test_monin_obukhov2.sh @@ -35,7 +35,7 @@ for p in r4 r8 do cp ${top_srcdir}/test_fms/monin_obukhov/input.${p}.nml input.nml test_expect_success "test monin_obukhov_mod (${p})" "mpirun -n 1 ./test_monin_obukhov_${p}" - rm input.nml + rm -f input.nml done test_done