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 5769 for branches/2015/dev_r5187_UKMO13_simplification/NEMOGCM/TOOLS/SCOORD_GEN/src/scoord_gen.F90 – NEMO

Ignore:
Timestamp:
2015-10-01T10:24:30+02:00 (9 years ago)
Author:
timgraham
Message:

1) Added tapering near equator if domain crosses equator
2) Added all variables that are needed for mesh_mask file to the output file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5187_UKMO13_simplification/NEMOGCM/TOOLS/SCOORD_GEN/src/scoord_gen.F90

    r5295 r5769  
    5757 
    5858      WRITE(*,*) 
    59       WRITE(*,*) 'domzgr_sco : s-coordinate or hybrid z-s-coordinate' 
     59      WRITE(*,*) 'scoord_gen : s-coordinate or hybrid z-s-coordinate' 
    6060      WRITE(*,*) '~~~~~~~~~~~' 
    6161      WRITE(*,*) '   Namelist namzgr_sco' 
     
    6666      WRITE(*,*) '        Critical depth                               rn_hc         = ',rn_hc 
    6767      WRITE(*,*) '        maximum cut-off r-value allowed              rn_rmax       = ',rn_rmax 
     68      WRITE(*,*) '        Tapering in vicinity of equator              ln_eq_taper   = ',ln_eq_taper 
     69      WRITE(*,*) '        Horizontal Coordinate File                   cn_coord_hgr  = ',cn_coord_hgr 
    6870      WRITE(*,*) '     Song and Haidvogel 1994 stretching              ln_s_sh94     = ',ln_s_sh94 
    6971      WRITE(*,*) '        Song and Haidvogel 1994 stretching coefficients' 
     
    126128         END DO 
    127129      END DO 
    128       WRITE(*,*) 'domzgr_sco print', bathy(196,147) 
    129130      !  
    130131      ! smooth the bathymetry (if required) 
     
    199200      ! 
    200201      ! Envelope bathymetry saved in hbatt 
     202      hbatt(:,:) = zenv(:,:)  
    201203      ! TODO - get this section to work 
    202       hbatt(:,:) = zenv(:,:)  
    203 !      IF( MINVAL( gphit(:,:) ) * MAXVAL( gphit(:,:) ) <= 0. ) THEN 
    204  !        CALL ctl_warn( ' s-coordinates are tapered in vicinity of the Equator' ) 
    205  !        DO jj = 1, jpj 
    206  !           DO ji = 1, jpi 
    207  !              ztaper = EXP( -(gphit(ji,jj)/8.)**2. ) 
    208  !              hbatt(ji,jj) = rn_sbot_max * ztaper + hbatt(ji,jj) * ( 1. - ztaper ) 
    209  !           END DO 
    210  !        END DO 
    211  !     ENDIF 
     204      IF( ln_eq_taper) THEN 
     205        CALL READ_GPHIT() 
     206        IF( MINVAL( gphit(:,:) ) * MAXVAL( gphit(:,:) ) <= 0. ) THEN 
     207          CALL ctl_warn( ' s-coordinates are tapered in vicinity of the Equator' ) 
     208          DO jj = 1, jpj 
     209             DO ji = 1, jpi 
     210                ztaper = EXP( -(gphit(ji,jj)/8.)**2. ) 
     211                hbatt(ji,jj) = rn_sbot_max * ztaper + hbatt(ji,jj) * ( 1. - ztaper ) 
     212             END DO 
     213          END DO 
     214      ENDIF 
    212215      ! 
    213216      !                                        ! ============================== 
Note: See TracChangeset for help on using the changeset viewer.