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 5654 for branches/UKMO/2015_V36_STABLE_CO6_CO5_zenv_pomsdwl/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90 – NEMO

Ignore:
Timestamp:
2015-07-30T18:45:28+02:00 (9 years ago)
Author:
deazer
Message:

Added in changes to allow CO5 like run to verify CO6 with NEMO STABLE VN3.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/2015_V36_STABLE_CO6_CO5_zenv_pomsdwl/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90

    r5650 r5654  
    102102      INTEGER ::   ios 
    103103      ! 
    104       NAMELIST/namzgr/ ln_zco, ln_zps, ln_sco, ln_isfcav 
     104      NAMELIST/namzgr/ ln_zco, ln_zps, ln_sco, ln_isfcav, ln_read_zenv 
    105105      !!---------------------------------------------------------------------- 
    106106      ! 
     
    125125         WRITE(numout,*) '             s- or hybrid z-s-coordinate    ln_sco    = ', ln_sco 
    126126         WRITE(numout,*) '             ice shelf cavities             ln_isfcav = ', ln_isfcav 
     127         WRITE(numout,*) '             Read zenv from Bathy T/F ln_read_zenv    = ', ln_read_zenv 
    127128      ENDIF 
    128129 
     
    518519            ELSE 
    519520               CALL iom_get  ( inum, jpdom_data, 'Bathymetry'    , bathy, lrowattr=ln_use_jattr  ) 
     521               IF ( ln_read_zenv ) THEN                  ! Whether we should read zenv or not 
     522                   CALL iom_get  ( inum, jpdom_data, 'zenv', zenv ) 
     523               ENDIF 
    520524            END IF 
    521525            CALL iom_close( inum ) 
     
    17981802      ! 
    17991803      REAL(wp), POINTER, DIMENSION(:,:  ) :: ztmpi1, ztmpi2, ztmpj1, ztmpj2 
    1800       REAL(wp), POINTER, DIMENSION(:,:  ) :: zenv, ztmp, zmsk, zri, zrj, zhbat 
     1804      REAL(wp), POINTER, DIMENSION(:,:  ) :: ztmp, zmsk, zri, zrj, zhbat 
    18011805 
    18021806      NAMELIST/namzgr_sco/ln_s_sh94, ln_s_sf12, ln_sigcrit, rn_sbot_min, rn_sbot_max, rn_hc, rn_rmax,rn_theta, & 
     
    18601864      !                                        ! ============================= 
    18611865      ! use r-value to create hybrid coordinates 
     1866      scosrf(:,:) = 0._wp             ! ocean surface depth (here zero: no under ice-shelf sea) 
     1867      scobot(:,:) = bathy(:,:)        ! ocean bottom  depth 
     1868      IF( ln_read_zenv) THEN 
     1869           WRITE(numout,*) '      Zenv is not calculated but read from Bathy File ln_read_zenv        = ', ln_read_zenv 
     1870      ELSE 
    18621871      zenv(:,:) = bathy(:,:) 
    18631872      ! 
     
    18811890      !  
    18821891      ! smooth the bathymetry (if required) 
    1883       scosrf(:,:) = 0._wp             ! ocean surface depth (here zero: no under ice-shelf sea) 
    1884       scobot(:,:) = bathy(:,:)        ! ocean bottom  depth 
    18851892      ! 
    18861893      jl = 0 
     
    19461953      END DO                                                !     End loop     ! 
    19471954      !                                                     ! ================ ! 
     1955      ENDIF ! End of IF Block for reading in zenv 
     1956      CALL lbc_lnk( zenv, 'T', 1._wp, 'no0' ) 
    19481957      DO jj = 1, jpj 
    19491958         DO ji = 1, jpi 
     
    22212230      END DO 
    22222231      ! 
    2223       CALL wrk_dealloc( jpi, jpj, zenv, ztmp, zmsk, zri, zrj, zhbat , ztmpi1, ztmpi2, ztmpj1, ztmpj2 ) 
     2232      CALL wrk_dealloc( jpi, jpj, ztmp, zmsk, zri, zrj, zhbat , ztmpi1, ztmpi2, ztmpj1, ztmpj2 ) 
    22242233      ! 
    22252234      IF( nn_timing == 1 )  CALL timing_stop('zgr_sco') 
Note: See TracChangeset for help on using the changeset viewer.