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.
Ticket Diff – NEMO

Changes between Initial Version and Version 1 of Ticket #2694


Ignore:
Timestamp:
2021-06-18T12:09:48+02:00 (3 years ago)
Author:
smasson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2694 – Description

    initial v1  
    33 
    44In the actual version of the code, in iom_put (and because of the way we defined our interface with xios): 
    5  
    6 we give to xios arrays defined over the full domain (jpi,jpi) 
    7 we say to xios to write data only over the inner domain (Ni_0, Nj_0) 
     5 - we give to xios arrays defined over the full domain (jpi,jpi) 
     6 - we say to xios to write data only over the inner domain (Ni_0, Nj_0) 
    87The problem is that in many cases (in most of cases?), output variables are diagnostics that could be computed only over the inner domain. Having to use full domain arrays forces us to do more computation, to call lbc_lbk (that is incompatible with a proper use of the tiles) or to use arrays with uninitialized halos which prevents to use the debug options. 
    98 
     
    22212) the second solution is good for performances but bad for users and maintenance: 
    2322The idea is to define 2 set of grids: gridT/U/V/F over the full domain and gridT/U/V/F over the inner domain. The modifications are quite easy to do in the code. The problem is that we would have to modify the xml files: 
    24  
    25 We would need to duplicated the contain of grid_def_nemo.xml to have for example grid_T_2D_full and grid_T_2D_inner instead than a simple grid_T_2D 
    26 next in all the field_def_nemo-*.xml files, we sould make sure that the grid linked to the variable is the proper one… there is more than 1200 variables... 
     23 - We would need to duplicated the contain of grid_def_nemo.xml to have for example grid_T_2D_full and grid_T_2D_inner instead than a simple grid_T_2D 
     24 - next in all the field_def_nemo-*.xml files, we sould make sure that the grid linked to the variable is the proper one… there is more than 1200 variables... 
    2725 
    2826==== Recommendation