Hi Yuan,Hi Inos,
I have ported CESM3 in archer2. Please goto ccs_config/machines/cmake_macros and create a new file named gnu_archer2.cmake. Below are my scripts for your reference.
set(HDF5_DIR "/opt/cray/pe/hdf5-parallel/1.12.2.1/gnu/9.1")
set(NETCDF_C_PATH "/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/gnu/9.1")
set(NETCDF_FORTRAN_PATH "/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/gnu/9.1")
set(ESMF_LIBDIR "/mnt/lustre/a2fs-work2/work/n02/n02/yuansun/privatemodules_packages/archer2/apps/gcc/esmf/8.6/lib")
set(PIO_LIBDIR "/mnt/lustre/a2fs-work2/work/n02/n02/yuansun/privatemodules_packages/archer2/apps/gcc/pio2/2.6.2/lib")
string(APPEND SLIBS " -L$ENV{HDF5_PATH}/lib -lhdf5_fortran -lhdf5 -lhdf5_hl -lhdf5hl_fortran -Wl,-rpath,${HDF5_PATH}/lib")
string(APPEND SLIBS " -L${NETCDF_C_PATH}/lib -L${NETCDF_FORTRAN_PATH}/lib -lnetcdff -lnetcdf -lm")
string(APPEND SLIBS " -L${PIO_LIBDIR} -Wl,-rpath,${PIO_LIBDIR} -ldl")
string(APPEND SLIBS " -L${ESMF_LIBDIR} -Wl,-rpath,${ESMF_LIBDIR} -ldl")
Best,
Yuan
I thought I'd try building the code with your ESMF library to see if that would help. However, I do not have permission. Are you able to provide this? I'm also considering to just upgrade to CESM3, as it might end up being a quicker solution, even if I have to redo some additional simulations. So I guess I'd need permission in that case too. By the way, if it's easier, we could talk about this via e-mail. You can reach me on inos AT bas.ac.uk.
Thanks,
Ingrid