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.
Changeset 6877 for branches – NEMO

Changeset 6877 for branches


Ignore:
Timestamp:
2016-08-23T15:31:34+02:00 (8 years ago)
Author:
stephenhaddad
Message:

crum #160: Update to ensure that NEMO treats xios1.0 and xios2.0 the same when sending the bounds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r6436_linkOasisNoKeys/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r6333 r6877  
    190190 
    191191      ! Add vertical grid bounds 
    192 #if ! defined key_xios2 
    193       z_bnds(:      ,1) = gdepw_1d(:) 
    194       z_bnds(1:jpkm1,2) = gdepw_1d(2:jpk) 
    195       z_bnds(jpk:   ,2) = gdepw_1d(jpk) + e3t_1d(jpk) 
    196 #else 
     192 
    197193      z_bnds(1      ,:) = gdepw_1d(:) 
    198194      z_bnds(2,1:jpkm1) = gdepw_1d(2:jpk) 
    199195      z_bnds(2,jpk:   ) = gdepw_1d(jpk) + e3t_1d(jpk) 
    200 #endif 
    201196 
    202197      CALL iom_set_axis_attr( "deptht", bounds=z_bnds ) 
     
    204199      CALL iom_set_axis_attr( "depthv", bounds=z_bnds ) 
    205200 
    206 #if ! defined key_xios2 
    207       z_bnds(:    ,2)  = gdept_1d(:) 
    208       z_bnds(2:jpk,1)  = gdept_1d(1:jpkm1) 
    209       z_bnds(1    ,1)  = gdept_1d(1) - e3w_1d(1) 
    210 #else 
    211201      z_bnds(2,:    )  = gdept_1d(:) 
    212202      z_bnds(1,2:jpk)  = gdept_1d(1:jpkm1) 
    213203      z_bnds(1,1    )  = gdept_1d(1) - e3w_1d(1) 
    214 #endif 
     204 
    215205      CALL iom_set_axis_attr( "depthw", bounds=z_bnds ) 
    216206 
Note: See TracChangeset for help on using the changeset viewer.