JMMP-Group / CO_AMM15

Coastal Ocean (CO) configuration of the Atlantic Margin Model (1.5 km resolution)
4 stars 1 forks source link

Compilation problem on METO cray of 4040 branch with Nicos Changes #19

Closed endaodea closed 3 years ago

endaodea commented 3 years ago

Picked up the 404 branch with extra tides in branches/NERC/NEMO_4.0.4_CO9_package_tides

Attempted build on MO cray has some compilation errors:

[FAIL] ftn -oo/bdydta.o -c -I./include -s real64 -s real64 -s integer32 -e m -J ./include -I/projects/um1/gcom/gcom5.4/meto_xc40_cray_mpp/build/include -I/projects/um1/grib_api/cce-8.3.4/1.13.0/include -e m -J . -L/data/d00/moci/modules//packages/XIOS/2.0/51458/1247/lib -I/data/d00/moci/modules//packages/XIOS/2.0/51458/1247/inc -lxios -I/data/d00/moci/modules//packages/oasis3-mct/2.0/51458/1765/build/lib/psmile.MPI1 -I/data/d00/moci/modules//packages/XIOS/2.0/51458/1247/inc -I/data/d00/moci/modules//packages/oasis3-mct/2.0/51458/1765/build/lib/psmile.MPI1 -O3 -Ovector1 -hfp0 -hflex_mp=strict -h omp -hzero -ez /home/d01/fred/cylc-run/CHECK_404_PCK_BRNCH_REPOS_NICO/share/fcm_make_ocean/preprocess-ocean/src/nemo/src/OCE/BDY/bdydta.F90 # rc=1
[FAIL] 
[FAIL] 
[FAIL] ftn-855 crayftn: ERROR BDYDTA, File = ../../../../../research/data/d01/fred/cylc-run/CHECK_404_PCK_BRNCH_REPOS_NICO/share/fcm_make_ocean/preprocess-ocean/src/nemo/src/OCE/BDY/bdydta.F90, Line = 3, Column = 8 
[FAIL]   The compiler has detected errors in module "BDYDTA".  No module information file will be created for this module.
[FAIL] 
[FAIL] 
[FAIL] ftn-233 crayftn: ERROR BDY_DTA, File = ../../../../../research/data/d01/fred/cylc-run/CHECK_404_PCK_BRNCH_REPOS_NICO/share/fcm_make_ocean/preprocess-ocean/src/nemo/src/OCE/BDY/bdydta.F90, Line = 291, Column = 14 
[FAIL]   IMPLICIT NONE is specified in the host scope, therefore an explicit type must be specified for function "NBLEN".
[FAIL] 
[FAIL] 
[FAIL] ftn-451 crayftn: ERROR BDY_DTA, File = ../../../../../research/data/d01/fred/cylc-run/CHECK_404_PCK_BRNCH_REPOS_NICO/share/fcm_make_ocean/preprocess-ocean/src/nemo/src/OCE/BDY/bdydta.F90, Line = 291, Column = 14 
[FAIL]   This reference to function NBLEN without an actual argument list is illegal.

Need to understand what the cray compiler is picking up on that is not being picked up on in archer.

endaodea commented 3 years ago

Look like in 404 it doesnt declare pointer nblen here, so we can modify like so?

      ! davbyr - add a shift to the boundary + free elevation Enda, JT from NEMO RAN 3.6
      DO jbdy = 1, nb_bdy
         IF( dta_bdy(jbdy)%lneed_ssh ) THEN
            !CEOD nblen => idx_bdy(jbdy)%nblenrim
             igrd  = 1
           !CEOD  DO ib = 1, nblen(igrd)
            DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   ! ssh is used only on the rim
endaodea commented 3 years ago

Checked back in at 14364 Appears to compile and run OK on METo Cray.