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 6906 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/CONFIG/LOCK_EXCHANGE/MY_SRC/usrdef_istate.F90 – NEMO

Ignore:
Timestamp:
2016-09-02T15:06:17+02:00 (8 years ago)
Author:
flavoni
Message:

#1692 and ROBUST-3 : commit zgr and some update for LOCK EXCHANGE case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/CONFIG/LOCK_EXCHANGE/MY_SRC/usrdef_istate.F90

    r6901 r6906  
    1414   !!---------------------------------------------------------------------- 
    1515   USE par_oce        ! ocean space and time domain 
     16   USE dom_oce , ONLY : glamt  
    1617   USE phycst         ! physical constants 
    1718   ! 
     
    4950      ! 
    5051      INTEGER  ::   jk     ! dummy loop indices 
     52      REAL(wp) ::   zdam   ! location of dam [Km] 
    5153      !!---------------------------------------------------------------------- 
    5254      ! 
    5355      IF(lwp) WRITE(numout,*) 
    54       IF(lwp) WRITE(numout,*) 'usr_def_istate : LOCK_EXCHANGE configuration, analytical definition of initial state ' 
    55       IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~   Ocean at rest, with a dam on T profile, and uniform S profile' 
     56      IF(lwp) WRITE(numout,*) 'usr_def_istate : LOCK_EXCHANGE configuration, analytical definition of initial state' 
     57      IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~   Ocean at rest, with a constant salinity (not used as rho=F(T) ' 
     58      IF(lwp) WRITE(numout,*) '                 and a vertical density front with a 5 kg/m3 difference located at glam=32km' 
     59      IF(lwp) WRITE(numout,*) '                 (i.e. a temperature difference of 25 degrees with rn_a0 = 0.2' 
     60      ! 
     61      !  rn_a0 =  2.e-1   !  thermal expension coefficient (nn_eos= 1) 
     62      !  rho = rau0 - rn_a0 * (T-10)  
     63      !  delta_T = 25 degrees  ==>>  delta_rho = 25 * rn_a0 = 5 kg/m3 
    5664      ! 
    5765      pu  (:,:,:) = 0._wp        ! ocean at rest 
     
    6068      ! 
    6169      !                          ! T & S profiles 
    62       pts(:,:,:,jp_tem) = 30._wp * tmask(:,:,:) 
     70      zdam = 32.                      ! in kilometers 
     71      pts(:,:,:,jp_tem) = 30._wp * ptmask(:,:,:) 
    6372      DO jk = 1, jpkm1 
    64 !SF   ADD rn_dx2 
    65          WHERE( gphit(:,:) <= zdam )   pts(:,:,jk,jp_tem) = 5._wp * tmask(:,:,jk) 
     73         WHERE( glamt(:,:) <= zdam )   pts(:,:,jk,jp_tem) = 5._wp * ptmask(:,:,jk) 
    6674      END DO 
    6775      ! 
    68       pts(:,:,:,jp_sal) = 35. * tmask(:,:,:) 
     76      pts(:,:,:,jp_sal) = 35._wp * ptmask(:,:,:) 
    6977      !    
    7078   END SUBROUTINE usr_def_istate 
Note: See TracChangeset for help on using the changeset viewer.