Hi,
I would like to run NEMO 4.0.6 with both AGRIF and TOP, which should be possible according to
https://forge.ipsl.jussieu.fr/nemo/chrome/site/doc/NEMO/guide/html/tracers.html
But unfortunately I don’t manage to compile with both key_top
and key_agrif
activated.
I can compile AGRIF_DEMO and ORCA2_ICE_PISCES without problems, but if I try to combine them like this
$ ./makenemo -r ORCA2_ICE_PISCES -n ORCA2_ICE_PISCES_AGRIF -m XC50_dmi_fast add_key 'key_agrif'
or like this
$ ./makenemo -r AGRIF_DEMO -n AGRIFTOP -m XC50_dmi_fast -d 'OCE TOP ICE NST' add_key 'key_top'
I get the following error message:
touch /home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/flags/FFLAGS__nemo__sedchem.flags
fcm_internal compile:F nemo /home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/ppsrc/nemo/sedchem.f90 sedchem.o
ftn -o sedchem.o -I/home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/inc -i4 -r8 -O2 -fp-model fast -fpp -init=zero -I/data/ang/NEMO/sourcecode/xios-2.5/inc -I/opt/cray/pe/netcdf-hdf5parallel/4.4.1.1.6/INTEL/16.0//include -I/opt/cray/pe/hdf5-parallel/1.10.1.1/INTEL/160//include -c /home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/ppsrc/nemo/sedchem.f90
/home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/ppsrc/nemo/sedchem.f90(337): error #7915: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association - may be used in multiple contained procedures. [JPKSED]
&1:jpksed) :: p_hini
--------^
/home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/ppsrc/nemo/sedchem.f90(337): error #6404: This name does not have a type, and must have an explicit type. [JPKSED]
&1:jpksed) :: p_hini
--------^
compilation aborted for /home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/ppsrc/nemo/sedchem.f90 (code 1)
fcm_internal compile failed (256)
/home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/Makefile:2745: recipe for target 'sedchem.o' failed
gmake: *** [sedchem.o] Error 1
gmake -f /home/ang/nemoSourcecode/release4.0.6_r15206/cfgs/AGRIFTOP/BLD/Makefile -j 1 all failed (2) at /netapp/research/ang/nemoSourcecode/release4.0.6_r15206/ext/FCM/bin/../lib/Fcm/Build.pm line 597.
->Make: 877 seconds
->TOTAL: 896 seconds
Build failed on Thu Sep 2 13:29:44 2021.
Looking into ppsrc/nemo/sedchem.f90 I get the impression that maybe the variable jpksed
didn’t get replaced properly by the Agrif-preprocessor??
332 SUBROUTINE ahini_for_at_sed(p_hini) 333
334
335 use Agrif_Util 336 real(wp), intent(OUT), dimension(1: Agrif_tabvars_i(927)% iarray0,&
337 &1:jpksed) :: p_hini
This line corresponds to
REAL(wp), DIMENSION(jpoce,jpksed), INTENT(OUT) :: p_hini
in src/TOP/PISCES/SED/sedchem.F90
I would be happy if someone has a hint for me…
Thanks,
Andrea
PS: I use the intel compiler and this is my arch-file:
%NCDF_HOME /opt/cray/pe/netcdf-hdf5parallel/4.4.1.1.6/INTEL/16.0/
%HDF5_HOME /opt/cray/pe/hdf5-parallel/1.10.1.1/INTEL/160/
%NCDF_INC -I%NCDF_HOME/include -I%HDF5_HOME/include
%NCDF_LIB -L%HDF5_HOME/lib -L%NCDF_HOME/lib -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz
%XIOS_HOME /data/ang/NEMO/sourcecode/xios-2.5
%XIOS_INC -I%XIOS_HOME/inc
%XIOS_LIB -L%XIOS_HOME/lib -lxios
%CPP cpp -Dkey_nosignedzero -DAGRIF_MPI
%FC ftn
%FCFLAGS -i4 -r8 -O2 -fp-model fast -fpp -init=zero
%FFLAGS %FCFLAGS
%LD CC -Wl,"--allow-multiple-definition"
%LDFLAGS
%FPPFLAGS -P -C -traditional -x f95-cpp-input
%AR ar
%ARFLAGS rs
%MK gmake
%USER_INC %XIOS_INC %NCDF_INC
%USER_LIB %XIOS_LIB %NCDF_LIB
%CC cc
%CFLAGS -O0