Error in compilation of large domain (814x519x42)

Hi,

I have a domain that is

if defined BENGUELA_LR

  parameter (LLm0=814,   MMm0=519,   N=42)   ! BENGUELA_LR

And I can’t compile (MPI and OPENMP) a basic configuration (plus define TIDES) with v1.2.1, the errors are the following

MPI

19.2.187/imkl/2019.2.187/mkl/lib/intel64 -L/home/lmod/software/MPI/intel/2019.2.187-GCC-8.2.0-2.31.1/impi/2019.2.187/imkl/2019.2.187/lib -L/home/lmod/software/MPI/intel/2019.2.187-GCC-8.2.0-2.31.1/impi/2019.2.187/netCDF/4.6.2/lib64 -lnetcdf -lnetcdf -liomp5 -lpthread
main.o:main_.f:function MAIN__: error: relocation overflow: reference to ‘scalars_main_’
main.o:main_.f:function MAIN__: error: relocation overflow: reference to ‘scalars_main_’

Full compilation output here

compile.log

something similar goes for OPEMNP

OPENMP

clm_tides.o:clm_tides_.f:function clm_tides_tile_: error: relocation overflow: reference to ‘tides_ptide_’
collect2: error: ld returned 1 exit status
gmake: *** [croco] Error 1

Is there a library problem?

Hi Andres

You can try to add -mcmodel=medium or -mcmodel=large to your compilation options

regards

Rachid

Thanks Rachid, that was it.