Hello,
I do not know if anyone can help here, and I’ve currently got an NCI helpdesk ticket open on this topic – let me know if you want me to share this ticket with you.
In fact, here is the crux of the issue:
-
clone CICE to a working directory ( GitHub - CICE-Consortium/CICE: Development repository for the CICE sea-ice model )
-
the at least add these two files (https://github.com/dpath2o/AFIM/blob/main/src/CICE/Macros.gadi_intel and https://github.com/dpath2o/AFIM/blob/main/src/CICE/env.gadi_intel ) to:
./configuration/scripts/machines/
directory in the CICE-cloned-code path.
- add this file ( https://github.com/dpath2o/AFIM/blob/main/src/CICE/set_nml.afim_0p1 ) to this CICE-cloned-code path:
./configuration/scripts/options/
- then run the following from the root CICE-cloned-code path:
./cice.setup -m gadi -e intel -c afim_0p1 -s afim_0p1
- then load modules:
module load intel-compiler/2021.6.0 netcdf/4.9.0 openmpi/4.1.4
- then:
cd afim_0p1
./cice.build
This is where it will fail because of library problem (i.e. an ‘include’ issue). Specifically, it will fail with:
mpif90 -c -qno-opt-dynamic-align -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -fp-model source -O2 -debug minimal -free -DFORTRANUNDERSCORE -DUSE_NETCDF -I…/icepack/columnphysics -I/apps/netcdf/4.9.0/include -I. -I… -I/usr/include -I/usr/lib64 /home/581/da1339/src/CICE/cicecore/shared/ice_kinds_mod.F90
/home/581/da1339/src/CICE/cicecore/shared/ice_kinds_mod.F90(13): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [ICEPACK_INTFC]
This from documentation on compiling CICE here:
https://cice-consortium-cice.readthedocs.io/en/main/user_guide/ug_running.html#