Opened 3 years ago
Last modified 2 years ago
#2539 new Request
Better management of T/S file used for tradmp.
Reported by: | mathiot | Owned by: | systeam |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | TRA | Version: | trunk |
Severity: | minor | Keywords: | DMP, |
Cc: |
Description
Context
Some users feel the need to have more flexibility in the choice of TS file used for tradmp.
As it is, the same T/S data file is used for tradmp and intialisation and there is no possibility to specify a file for intialisation and an other file for tradmp. DRAKKAR has done something to enable this. ISOMIP+ has also in MY_SRC some code to do it.
For information, there are also some comments in the code about it in tradmp.F90:
200 !!TG: Initialisation of dtatsd - Would it be better to have dmpdta routine 201 ! so can damp to something other than intitial conditions files? 202 !!gm: In principle yes. Nevertheless, we can't anticipate demands that have never been formulated.
Analysis
Code change by DRAKKAR available here: https://github.com/meom-group/DCM/tree/master/DCMTOOLS/DRAKKAR/NEMO4/src
Code change by ISOMIP+ in tests/ISOMIP+/MY_SRC
Comments on both solutions:
- they don't get rid of ln_tsd_dmp defined in namtsd.
- tradmp TS file still defined in namtsd file.
Suggestion of a third solution:
- dta_tsd_init (ie print and definition/allocation of sf_tsdini or sf_tsddmp) split in tradmp_init and istate_init => no more *dmp* namelist variable in dtatsd and no more dta_tsd_init subroutine
- dta_tsd with a new argument which is the sf_tsd structure (dmp one or init one) and the deallocation of T & S arrays used for the intialisation done at the end of dta_tsd moved to istate. => dta_tsd with this change should be universal as all reference to dmp case of ini case are removed.
- rename namelist namtsd and associated variable to be clear it is intialisation ?
Benefits
- more flexibility in NEMO configuration and behaviour in phase with other part of NEMO like namsbc_ssr for example (ie data used defined in the corresponding block).
- tradmp variables are all in namtra_dmp block and initialisation variable in namtsd (or a new name) block.
- dtatsd, istate and tradmp files out of ISOMIP+/MY_SRC (see #2536).
Commit History (0)
(No commits)
Change History (3)
comment:1 Changed 3 years ago by mathiot
comment:2 Changed 3 years ago by hadcv
#2564- further support for the removal of this code block!
comment:3 Changed 2 years ago by mathiot
- Type changed from Defect to Feature request
BTW: This bits of code from dtatsd.F90 (r13497, last modification) should probably be remove or moved to usr_def_istate or even better included in the T/S input file (if still needed) as suggested in the comments: