NEMO-examples icon indicating copy to clipboard operation
NEMO-examples copied to clipboard

examples fail to compile

Open puneet336 opened this issue 4 years ago • 1 comments

Hi, i get following error when i try to compile the examples listed in the repository - gmake: *** No rule to make target 'diatmb.o', needed by 'diawri.o'. Stop. this shows up with BENCH and CANAL test cases.

the BENCH and CANAL which comes as part of r4.0.6 branch14997 work fine. please let me know if more information is required in order to fix this issue.

puneet336 avatar Jun 16 '21 12:06 puneet336

I was able to find the file from here - https://forge.ipsl.jussieu.fr/nemo/svn/NEMO/releases/release-4.0.1/src/OCE/DIA/diatmb.F90. The compilation proceeds and fails with a different error message -

/home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/ppsrc/nemo/trdmxl_oce.f90
/home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/ppsrc/nemo/usrdef_nam.f90(78): error #6784: The number of actual arguments cannot be greater than the number of dummy arguments.   [CTL_NAM]
903   IF( ios /= 0 )   CALL ctl_nam ( ios , 'namusr_def in configuration namelist', .TRUE. )
----------------------------^
/home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/ppsrc/nemo/usrdef_nam.f90(88): error #6784: The number of actual arguments cannot be greater than the number of dummy arguments.   [CTL_NAM]
901      IF( ios /= 0 )   CALL ctl_nam ( ios , 'nammpp in reference namelist', lwp )
-------------------------------^
/home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/ppsrc/nemo/usrdef_nam.f90(92): error #6784: The number of actual arguments cannot be greater than the number of dummy arguments.   [CTL_NAM]
902      IF( ios >  0 )   CALL ctl_nam ( ios , 'nammpp in configuration namelist', lwp )
-------------------------------^
compilation aborted for /home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/ppsrc/nemo/usrdef_nam.f90 (code 1)
fcm_internal compile failed (256)
gmake: *** [/home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/Makefile:3673: usrdef_nam.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake -f /home/user1/r4.0.6_14997/src/r4.0.6_14997/tests/My_BENCH/BLD/Makefile -j 20 all failed (2) at /home/user1/r4.0.6_14997/src/r4.0.6_14997/ext/FCM/bin/../lib/Fcm/Build.pm line 597.
->Make: 14 seconds
->TOTAL: 16 seconds
Build failed on Wed Jun 16 07:53:32 2021.
/home/user1/r4.0.6_14997/src/r4.0.6_14997/tests

Are the examples uploaded here compatible with nemo r4.0.6(branch - 14997) ?

puneet336 avatar Jun 16 '21 12:06 puneet336