Opened 3 years ago
Closed 3 years ago
#2388 closed Defect (fixed)
Source code in the MY_SRC directory of the BENCH tests case is out of date
Reported by: | smueller | Owned by: | systeam |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | env | Version: | trunk |
Severity: | minor | Keywords: | test_cases, BENCH |
Cc: |
Description
Context
The compilation of the BENCH test case fails.
Analysis
There are two issues that result in the failure of the NEMO-executable compilation for the BENCH test case:
- source:/NEMO/trunk/tests/BENCH/MY_SRC/diawri.F90 refers to the previously removed diatmb module; and
- source:/NEMO/trunk/tests/BENCH/MY_SRC/zdfiwm.F90 makes use of the obsolete variable ln_ctl.
Recommendation
To re-enable compilation of the NEMO executable for the BENCH test case, source:/NEMO/trunk/tests/BENCH/MY_SRC/diawri.F90 could be modified according to
-
diawri.F90
45 45 ! 46 46 USE lbclnk ! ocean lateral boundary conditions (or mpp link) 47 47 USE in_out_manager ! I/O manager 48 USE diatmb ! Top,middle,bottom output49 48 USE dia25h ! 25h Mean output 50 49 USE iom ! 51 50 USE ioipsl !
and source:/NEMO/trunk/tests/BENCH/MY_SRC/zdfiwm.F90 according to
-
zdfiwm.F90
363 363 ENDIF 364 364 CALL iom_put( "emix_iwm", zemx_iwm ) 365 365 366 IF( ln_ctl) CALL prt_ctl(tab3d_1=zav_wave , clinfo1=' iwm - av_wave: ', tab3d_2=avt, clinfo2=' avt: ', kdim=jpk)366 IF(sn_cfctl%l_prtctl) CALL prt_ctl(tab3d_1=zav_wave , clinfo1=' iwm - av_wave: ', tab3d_2=avt, clinfo2=' avt: ', kdim=jpk) 367 367 ! 368 368 END SUBROUTINE zdf_iwm
Further, source:/NEMO/trunk/tests/BENCH/MY_SRC/diawri.F90 and source:/NEMO/trunk/tests/BENCH/MY_SRC/zdfiwm.F90 should be examined for other relevant differences with source:/NEMO/trunk/src/OCE/DIA/diawri.F90 and source:/NEMO/trunk/src/OCE/ZDF/zdfiwm.F90, respectively. Also, some code in source:/NEMO/trunk/tests/BENCH/MY_SRC/ should be updated to make use of do-loop macros.
Commit History (1)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
12487 | smasson | 2020-02-28T15:59:24+01:00 | trunk: bugfix to compile BENCH, see #2388 |
Change History (3)
comment:1 Changed 3 years ago by smasson
comment:2 Changed 3 years ago by smasson
In 12487:
comment:3 Changed 3 years ago by smasson
- Resolution set to fixed
- Status changed from new to closed
I coded the quick fix as I needed to be able to compile BENCH.
If someone want to code a better fix and add a more flexible way to define input values in zdfiwm, I think this should be done a different and specific ticket (without forgetting to delete BENCH/MY_SRC/zdfiwm.F90 as, once the better fix is done, it should not be necessary to duplicate this routine anymore...)
following [11536] and as in release-4.0.2, diawri.F90 should be deleted from MY_SRC.
since https://forge.ipsl.jussieu.fr/nemo/changeset/11536/NEMO/trunk/src/OCE/DIA/diawri.F90, nothing is done when nn_write == -1 and key_iomput is not defined, so there is no need of a specific diawri.F90 in BENCH/MY_SRC anymore.
regarding zdfiwm: the copy of this file in BENCH/MY_SRC is there only to replace informations read in 5 different input files by some default values (as we don't want any input file in BENCH):