ufs-weather-model
ufs-weather-model copied to clipboard
Can't build ufs-weather-model without -DINLINE_POST=ON
Description
Building on my mac using build.sh
:
heinzell@JCSDA-L-18146:~/work/CMakeModules/move-jedi-cmake-modules-to-cmakemodules/ufs-weather-model [brew-x86_64]> rm -fr build && CMAKE_FLAGS="-DOPENMP=OFF -DAPP=ATM -DCCPP_SUITES=FV3_RAP,FV3_HRRR -D32BIT=ON -DCCPP_32BIT=ON" ./build.sh 2>&1 | tee build.log
Fails with missing inline post dependencies:
...
Scanning dependencies of target fv3atm
[ 92%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/cpl/module_block_data.F90.o
[ 92%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/io/FV3GFS_io.F90.o
[ 93%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/cpl/module_cplfields.F90.o
[ 93%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/module_fv3_config.F90.o
[ 93%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/cpl/module_cap_cpl.F90.o
[ 93%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/stochastic_physics/stochastic_physics_wrapper.F90.o
[ 93%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/io/module_fv3_io_def.F90.o
[ 94%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/io/module_write_internal_state.F90.o
[ 95%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/io/module_write_netcdf.F90.o
[ 95%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/io/inline_post_stub.F90.o
[ 95%] Building Fortran object FV3/CMakeFiles/fv3atm.dir/io/module_wrt_grid_comp.F90.o
/Users/heinzell/work/CMakeModules/move-jedi-cmake-modules-to-cmakemodules/ufs-weather-model/FV3/io/module_wrt_grid_comp.F90:136:11:
136 | use ctlblk_mod, only: numx
| 1
Fatal Error: Cannot open module file 'ctlblk_mod.mod' for reading at (1): No such file or directory
compilation terminated.
make[2]: *** [FV3/CMakeFiles/fv3atm.dir/io/module_wrt_grid_comp.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [FV3/CMakeFiles/fv3atm.dir/all] Error 2
make: *** [all] Error 2
If inline post is now mandatory, then that option should be set to ON
by default in the top-level CMakeLists.txt
, and the switches in the machine configs should be removed.
To Reproduce:
See above - macOS using spack-stack with clang-13.1.6, openmpi-4..1.3, ...
Additional context
n/a
I'm working on adding support to inline post to allow it to run on multiple domains (nests). I believe this issue is fixed, see this branch: https://github.com/DusanJovic-NOAA/fv3atm/tree/mdpost
Sounds good. I'll test it when your PR bubbles up the commit queue.
@climbfuji Can you test if the issue is resolved? Thanks
I think this issue is resolved, yes. Thanks!