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 9135 for branches/2017/dev_merge_2017/NEMOGCM/CONFIG/TEST_CASES/OVERFLOW/MY_SRC – NEMO

Ignore:
Timestamp:
2017-12-19T16:44:50+01:00 (6 years ago)
Author:
flavoni
Message:

fix input/ouput flag of coordinates in usrdef routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/CONFIG/TEST_CASES/OVERFLOW/MY_SRC/usrdef_zgr.F90

    r9125 r9135  
    1515   !!--------------------------------------------------------------------- 
    1616   USE oce            ! ocean variables 
    17    USE dom_oce ,  ONLY: ln_zco, ln_zps, ln_sco   ! ocean space and time domain 
    1817   USE dom_oce ,  ONLY: mi0, mi1, nimpp, njmpp   ! ocean space and time domain 
    1918   USE dom_oce ,  ONLY: glamt                    ! ocean space and time domain 
     
    5150      !! 
    5251      !!---------------------------------------------------------------------- 
    53       LOGICAL                   , INTENT(out) ::   ld_zco, ld_zps, ld_sco      ! vertical coordinate flags 
    54       LOGICAL                   , INTENT(out) ::   ld_isfcav                   ! under iceshelf cavity flag 
    55       REAL(wp), DIMENSION(:)    , INTENT(out) ::   pdept_1d, pdepw_1d          ! 1D grid-point depth     [m] 
    56       REAL(wp), DIMENSION(:)    , INTENT(out) ::   pe3t_1d , pe3w_1d           ! 1D grid-point depth     [m] 
    57       REAL(wp), DIMENSION(:,:,:), INTENT(out) ::   pdept, pdepw                ! grid-point depth        [m] 
    58       REAL(wp), DIMENSION(:,:,:), INTENT(out) ::   pe3t , pe3u , pe3v , pe3f   ! vertical scale factors  [m] 
    59       REAL(wp), DIMENSION(:,:,:), INTENT(out) ::   pe3w , pe3uw, pe3vw         ! i-scale factors  
    60       INTEGER , DIMENSION(:,:)  , INTENT(out) ::   k_top, k_bot                ! first & last ocean level 
     52      LOGICAL                   , INTENT(in   ) ::   ld_zco, ld_zps, ld_sco      ! vertical coordinate flags ( read in namusr_def ) 
     53      LOGICAL                   , INTENT(  out) ::   ld_isfcav                   ! under iceshelf cavity flag 
     54      REAL(wp), DIMENSION(:)    , INTENT(  out) ::   pdept_1d, pdepw_1d          ! 1D grid-point depth     [m] 
     55      REAL(wp), DIMENSION(:)    , INTENT(  out) ::   pe3t_1d , pe3w_1d           ! 1D grid-point depth     [m] 
     56      REAL(wp), DIMENSION(:,:,:), INTENT(  out) ::   pdept, pdepw                ! grid-point depth        [m] 
     57      REAL(wp), DIMENSION(:,:,:), INTENT(  out) ::   pe3t , pe3u , pe3v , pe3f   ! vertical scale factors  [m] 
     58      REAL(wp), DIMENSION(:,:,:), INTENT(  out) ::   pe3w , pe3uw, pe3vw         ! i-scale factors  
     59      INTEGER , DIMENSION(:,:)  , INTENT(  out) ::   k_top, k_bot                ! first & last ocean level 
    6160      ! 
    6261      INTEGER  ::   ji, jj, jk        ! dummy indices 
     
    118117      !                               
    119118      ! 
    120       IF ( ln_sco ) THEN      !==  s-coordinate  ==!   (terrain-following coordinate) 
     119      IF ( ld_sco ) THEN      !==  s-coordinate  ==!   (terrain-following coordinate) 
    121120         ! 
    122121         k_bot(:,:) = jpkm1 * k_top(:,:)  !* bottom ocean = jpk-1 (here use k_top as a land mask) 
     
    139138      ! 
    140139      ! 
    141       IF ( ln_zco ) THEN      !==  z-coordinate  ==!   (step-like topography) 
     140      IF ( ld_zco ) THEN      !==  z-coordinate  ==!   (step-like topography) 
    142141         ! 
    143142         !                                !* bottom ocean compute from the depth of grid-points 
     
    161160      ! 
    162161      ! 
    163       IF ( ln_zps ) THEN      !==  zps-coordinate  ==!   (partial bottom-steps) 
     162      IF ( ld_zps ) THEN      !==  zps-coordinate  ==!   (partial bottom-steps) 
    164163         ! 
    165164         ze3min = 0.1_wp * rn_dz 
Note: See TracChangeset for help on using the changeset viewer.