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

Ignore:
Timestamp:
2016-08-29T17:55:22+02:00 (8 years ago)
Author:
flavoni
Message:

#1692 and ROBUST-3 : Update OVERFLOW configuration, and some cleaning

File:
1 edited

Legend:

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

    r6895 r6900  
    22   !!============================================================================== 
    33   !!                       ***  MODULE usrdef_istate   *** 
     4   !! 
     5   !!                      ===  OVERFLOW configuration  === 
     6   !! 
    47   !! User defined : set the initial state of a user configuration 
    58   !!============================================================================== 
    6    !! History :  NEMO ! 2016-03  (S. Flavoni) Original code 
     9   !! History :  NEMO ! 2016-03  (S. Flavoni, G. Madec) Original code 
    710   !!---------------------------------------------------------------------- 
    811 
     
    4043      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(in   ) ::   pdept   ! depth of t-point               [m] 
    4144      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(in   ) ::   ptmask  ! t-point ocean mask             [m] 
    42       REAL(wp), DIMENSION(jpi,jpj,jpk,jpts), INTENT(  out) ::   pts     ! T & S fields      [Celcius ; g/kg] 
     45      REAL(wp), DIMENSION(jpi,jpj,jpk,jpts), INTENT(  out) ::   pts     ! T & S fields      [Celsius ; g/kg] 
    4346      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(  out) ::   pu      ! i-component of the velocity  [m/s]  
    4447      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(  out) ::   pv      ! j-component of the velocity  [m/s]  
    4548      REAL(wp), DIMENSION(jpi,jpj)         , INTENT(  out) ::   pssh    ! sea-surface height 
    4649      ! 
    47       INTEGER :: ji, jj, jk  ! dummy loop indices 
    48       INTEGRE :: dam         ! location of dam 
     50      INTEGER  ::   jk     ! dummy loop indices 
     51      REAL(wp) ::   zdam   ! location of dam [m] 
    4952      !!---------------------------------------------------------------------- 
    5053      ! 
    5154      IF(lwp) WRITE(numout,*) 
    52       IF(lwp) WRITE(numout,*) 'usr_def_istate : analytical definition of initial state ' 
     55      IF(lwp) WRITE(numout,*) 'usr_def_istate : OVERFLOW configuration, analytical definition of initial state ' 
    5356      IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~~   Ocean at rest, with a dam on T profile, and uniform S profile' 
    5457      ! 
     
    5760      pssh(:,:)   = 0._wp 
    5861      ! 
    59       DO jk = 1, jpk            ! T & S profiles 
    60          DO jj = 1, jpj 
    61             DO ji = 1, jpi 
    62                 IF( ji .LE. dam ) THEN 
    63                    pts(ji,jj,jk,jp_tem) = 10.  * tmask(ji,jj,jk) 
    64                 ELSE 
    65                    pts(ji,jj,jk,jp_tem) = 20. * tmask(ji,jj,jk) 
    66                 ENDIF 
    67           END DO 
    68         END DO 
     62      !                          ! T & S profiles 
     63      zdam = 20.e+3 
     64      pts(:,:,:,jp_tem) = 20._wp * tmask(:,:,:) 
     65      DO jk = 1, jpkm1 
     66         WHERE( gphit(:,:) <= zdam )   pts(:,:,jk,jp_tem) = 10._wp * tmask(:,:,jk) 
    6967      END DO 
    7068      ! 
Note: See TracChangeset for help on using the changeset viewer.