New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
2014WP/2016_SystemSimplification_hard_coding (diff) – NEMO

Changes between Initial Version and Version 1 of 2014WP/2016_SystemSimplification_hard_coding


Ignore:
Timestamp:
2016-06-12T07:03:54+02:00 (8 years ago)
Author:
gm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2014WP/2016_SystemSimplification_hard_coding

    v1 v1  
     1= '''disappearance of “configuration hard coding”''' = 
     2Last edited '''[[LastModified()]]''' 
     3 
     4[[PageOutline]] 
     5 
     6---- 
     7---- 
     8== User interface == 
     9The idea here is to introduce in the code a few number of user routine with a clear interface that the user can fill up rolling his desires. This strategy will be applied for the standard configurations (GYRE, ORCA2, AMM, ...) For example, the analytical forcing of gyre configuration instead of being part of the inner part of the code (sbc_gyre) it will put put in a my_sbc.F90 module given in the MY_SRC directory of the GYRE configuration. 
     10 
     11Typically, the my_... will be related to horizontal mesh, vertical grid, initial state and forcing. In each cases what should come out of those routine will be pass as arguments, so the user will know exactly what they have to define. 
     12 
     13---- 
     14== Inside the ocean code (OPA) == 
     15Here follows a brief description of "hard coding" associated to build in configuration (mostly ORCA configuration) and suggestion about what we plan to done with them[[BR]]Item in '''bold''' are those that are still to be done 
     16 
     17'''closea.F90''' : 
     18 
     19  suppress closed seas in forced mode (typically Caspian Sea, Azov Sea…)[[BR]]or balance their fresh water budget in coupled mode …[[BR]]'''===>>> How to deal with that ?''' idea user_defined module for close.F90 
     20 
     21[[BR]]'''diafwb.F90''' : 
     22 
     23  only diagnostics of the global fresh water budget and of transport of mass salt and heat in some straits:[[BR]]Gibraltar, Red Sea, Baltic Sea etc. for ORCA 4°, 2° & 1°[[BR]]'''===>>> module to be suppress  '''idea user_defined module for that 
     24 
     25[[BR]]'''diaptr.F90''' : 
     26 
     27  Computes meridional transports and zonal means (of heat salt velocities). [[BR]]Inefficient on MPP as require global communication. Better to compute off line. [[BR]]Suppress the module and add the output of the vertical average of u.T , v.T , u.S, v.S [[BR]]from which exact poleward heat transport can be computed…[[BR]]'''===>>> module to be suppress (?)  '''discussion still open as in ESM, they want those diags directly in the output... 
     28 
     29[[BR]]domhgr.F90 : 
     30 
     31  hard coded reduction of scale factors in some straits in ORCA configurations [[BR]](typically straits of Gibraltar, Bab el Mandeb, Danish, Lombok, Sumba, etc).  [[BR]]The input coordinates.nc file have to contain the information [[BR]](+ add in TOOLS a fortran program as an example of how to modify a coordinates.nc file)[[BR]]===>>> remove hard coded part  [[BR]]'''DONE in '''[https://forge.ipsl.jussieu.fr/nemo/browser/branches/2015/dev_r5721_CNRS9_NOC3_LDF 2015/dev_r5721_CNRS9_NOC3_LDF] 
     32 
     33[[BR]]'''dommsk.F90''' : 
     34 
     35  hard coded increase of lateral friction at the coast in some straits. [[BR]]Add a external file to be read that contains the specification of lateral friction [[BR]](+ add in TOOLS a fortran program as an example of how to specify the input file)[[BR]]'''===>>> remove hard coded part''' 
     36 
     37'''dtatsd, dtauvd.F90''' : 
     38 
     39  in ORCA_R2 case, some hand made alterations in Red and Med Seas as well as changes associated with cross-land advection. [[BR]]Can be removed. If someone wants similar things, he has to modify the T-S data file.[[BR]]'''===>>> remove hard coded part''' 
     40 
     41[[BR]]'''istate.F90''' : 
     42 
     43  analytical initial state for EEL and GYRE[[BR]]'''===>>> to be kept util USER defined modules are introduced''' 
     44 
     45'''p4zsbc.F90''' : 
     46 
     47  hard coded enhance coastal supply of iron for ORCA2. [[BR]]Since a file is provided that can contains the specificity of ORCA 2°[[BR]]'''===>>> remove hard coded part''' 
     48 
     49'''trabbl.F90''' : 
     50 
     51  ORCA 4° & 2°, regional enhancement of ah_bbl [[BR]]===>>> to be suppress  [[BR]]'''DONE in '''2015/dev_r5721_CNRS9_NOC3_ZDF  '''but not incorporate in the 2015 merge ''' 
     52 
     53'''trcdmp.F90''' : 
     54 
     55  hard coded definition of damping in closed seas for ORCA 2°, 1°, 0.5°. [[BR]]'''===>>> Find a solution''' similar to what will be done for closed seas in OPA (close.F90)