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 13512 for NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/src/OCE/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2020-09-24T13:57:53+02:00 (4 years ago)
Author:
techene
Message:

#2385 add the possibility of having F grid files / variables (needed for SWE and maybe useful for having the vorticity at the right point)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/src/OCE/IOM/iom.F90

    r13295 r13512  
    157157         CALL set_grid( "V", glamv, gphiv, .FALSE., .FALSE. ) 
    158158         CALL set_grid( "W", glamt, gphit, .FALSE., .FALSE. ) 
     159         CALL set_grid( "F", glamf, gphif, .FALSE., .FALSE. ) 
    159160         CALL set_grid_znl( gphit ) 
    160161         ! 
     
    163164            CALL iom_set_domain_attr("grid_U", area = real( e1e2u(Nis0:Nie0, Njs0:Nje0), dp)) 
    164165            CALL iom_set_domain_attr("grid_V", area = real( e1e2v(Nis0:Nie0, Njs0:Nje0), dp)) 
    165             CALL iom_set_domain_attr("grid_W", area = real( e1e2t(Nis0:Nie0, Njs0:Nje0), dp)) 
     166            CALL iom_set_domain_attr("grid_W", area = REAL( e1e2t(Nis0:Nie0, Njs0:Nje0), dp)) 
     167            CALL iom_set_domain_attr("grid_F", area = real( e1e2f(Nis0:Nie0, Njs0:Nje0), dp)) 
    166168            CALL set_grid_bounds( "T", glamf, gphif, glamt, gphit ) 
    167169            CALL set_grid_bounds( "U", glamv, gphiv, glamu, gphiu ) 
    168170            CALL set_grid_bounds( "V", glamu, gphiu, glamv, gphiv ) 
    169171            CALL set_grid_bounds( "W", glamf, gphif, glamt, gphit ) 
     172            CALL set_grid_bounds( "F", glamt, gphit, glamf, gphif ) 
    170173         ENDIF 
    171174      ENDIF 
     
    174177         CALL dom_grid_crs   ! Save the parent grid information  & Switch to coarse grid domain 
    175178         ! 
    176          CALL set_grid( "T", glamt_crs, gphit_crs, .FALSE., .FALSE. )  
    177          CALL set_grid( "U", glamu_crs, gphiu_crs, .FALSE., .FALSE. )  
    178          CALL set_grid( "V", glamv_crs, gphiv_crs, .FALSE., .FALSE. )  
    179          CALL set_grid( "W", glamt_crs, gphit_crs, .FALSE., .FALSE. )  
     179         CALL set_grid( "T", glamt_crs, gphit_crs, .FALSE., .FALSE. ) 
     180         CALL set_grid( "U", glamu_crs, gphiu_crs, .FALSE., .FALSE. ) 
     181         CALL set_grid( "V", glamv_crs, gphiv_crs, .FALSE., .FALSE. ) 
     182         CALL set_grid( "W", glamt_crs, gphit_crs, .FALSE., .FALSE. ) 
    180183         CALL set_grid_znl( gphit_crs ) 
    181184          ! 
     
    200203          CALL iom_set_axis_attr(  "depthv", paxis = gdept_1d ) 
    201204          CALL iom_set_axis_attr(  "depthw", paxis = gdepw_1d ) 
     205          CALL iom_set_axis_attr(  "depthf", paxis = gdept_1d ) 
    202206 
    203207          ! ABL 
     
    221225          CALL iom_set_axis_attr(  "depthv", bounds=zw_bnds ) 
    222226          CALL iom_set_axis_attr(  "depthw", bounds=zt_bnds ) 
     227          CALL iom_set_axis_attr(  "depthf", bounds=zw_bnds ) 
    223228 
    224229          ! ABL 
Note: See TracChangeset for help on using the changeset viewer.