The OASIS Coupler Forum

  HOME

Error compiling with ftn on cca@ecmwf.int

Up to Installation and compilation

Posted by Anonymous at January 15 2020

Good morning,

I just attempted to compile our coupled OpenIFS-FESOM2 model on the ECMWF cca server. In contrast to other mashines we used so far we use the cray ftn compiler here.

Compile flag: export FFLAGS="-G0 -O0 -emf -hnoomp -hadd_paren -hbyteswapio -J./" export FFIXED="-s real64" export FCDEFS="BLAS LITTLE LINUX INTEGER_IS_INT ECMWF" export LFLAGS="-hbyteswapio" export CFLAGS="O2" export CCDEFS="BLAS LITTLE LINUX INTEGER_IS_INT _ABI64"

Currently Loaded Modulefiles: 1) modules/3.2.10.5(default) 2) craype-broadwell 3) craype-network-aries 4) craype/2.5.9(default) 5) cce/8.5.8(default) 6) cray-libsci/16.11.1(default) 7) udreg/2.3.2-1.0502.10518.2.17.ari 8) ugni/6.0-1.0502.10863.8.29.ari 9) dmapp/7.0.1-1.0502.11080.8.76.ari 10) rca/1.0.0-2.0502.60530.1.62.ari 11) atp/2.1.0(default) 12) PrgEnv-cray/5.2.82 13) cray-netcdf-hdf5parallel/4.4.1.1(default) 14) cray-hdf5-parallel/1.10.0.1(default) 15) perl/5.18.1(default) 16) cmake/3.13.4(jun19:new:default) 17) fcm/2019.05.0(jun19:new:default) 18) jasper/1.900.1(default) 19) grib_api/1.27.0(nov18:default) 20) eswrap/1.3.3-1.020200.1280.0 21) pmi/5.0.11(default) 22) pbs/13.0.403.161593 23) cray-mpich/7.5.3(default) 24) cdt/17.03 25) git/2.20.1(jun19:new:default)

The compiliation of Oasis3MCT crashes with the following error message: ftn-356 crayftn: ERROR REMAP_CONSERV, File = ../../../../../../perm/ms/spde/de1a/esm-master/awicm-3.1/oasis/lib/scrip/src/remap_conserv.F, Line = 676, Column = 29 Assignment of a LOGICAL expression to a INTEGER variable is not allowed.

Do you see what our problem is? Do you have an example of a sucessfull compiliation with ftn?

Best regards, Jan Streffing

Posted by Anonymous at January 16 2020

We compile OASIS-MCT at the Met Office using ftn on Cray-XC40 machines. 

We've found that many of the Fortran compiler versions are rather twitchy with different codes, although I don't think we've ever seen any failures specifically related to OASIS-MCT Fortran compilation. We find cce/8.3.4 to be pretty safe if a trifle old, but I think we've also used 8.5.8 successfully and I'm told that 8.7.7 is also fine. We specify gcc for the C code because there was, once upon a time, some problem with the Cray C compiler version we were trying to use.

If you can find util/make_dir/make.cray40 in your OASIS-MCT distribution, that gives an example of the sort of compiler options we might typically use. 
HTH Richard

Posted by Anonymous at January 16 2020

Hi,

I do not know which version of OASIS3-MCT you are using, but oasis3-mct/util/make_dir/make.cray40 is available in OASIS3-MCT_4.0.

You must register on the OASIS web site before downloading the sources at the address : https://oasis.cerfacs.fr/en/download-oasis3-mct-sources/

You will have the git clone command when submitting the questionnary to get the sources. Like that we know which users download the sources. 

Best regards, Laure
Reply to this