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 13874 for NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/tests/OVERFLOW – NEMO

Ignore:
Timestamp:
2020-11-25T14:49:40+01:00 (4 years ago)
Author:
techene
Message:

#2574 ssh set up at initialization or restart separated from u,v,ts : removed from istate_init added in dom_init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r13327_KERNEL-06_2_techene_e3/tests/OVERFLOW/MY_SRC/usrdef_istate.F90

    r13762 r13874  
    88   !!============================================================================== 
    99   !! History :  NEMO ! 2016-03  (S. Flavoni, G. Madec) Original code 
     10   !!                 ! 2020-11  (S. Techene, G. Madec) separate tsuv from ssh 
    1011   !!---------------------------------------------------------------------- 
    1112 
     
    2324   PRIVATE 
    2425 
    25    PUBLIC   usr_def_istate   ! called by istate.F90 
    26    PUBLIC   usr_def_ssh      ! called by domqco.F90 
     26   PUBLIC   usr_def_istate       ! called by istate.F90 
     27   PUBLIC   usr_def_istate_ssh   ! called by domqco.F90 
    2728    
    2829   !!---------------------------------------------------------------------- 
     
    3334CONTAINS 
    3435   
    35    SUBROUTINE usr_def_istate( pdept, ptmask, pts, pu, pv, pssh ) 
     36   SUBROUTINE usr_def_istate( pdept, ptmask, pts, pu, pv ) 
    3637      !!---------------------------------------------------------------------- 
    3738      !!                   ***  ROUTINE usr_def_istate  *** 
     
    4849      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(  out) ::   pu      ! i-component of the velocity  [m/s]  
    4950      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(  out) ::   pv      ! j-component of the velocity  [m/s]  
    50       REAL(wp), DIMENSION(jpi,jpj)         , INTENT(  out) ::   pssh    ! sea-surface height 
    5151      ! 
    5252      INTEGER  ::   jk     ! dummy loop indices 
     
    6666      pu  (:,:,:) = 0._wp        ! ocean at rest 
    6767      pv  (:,:,:) = 0._wp 
    68       pssh(:,:)   = 0._wp 
    6968      ! 
    7069      !                          ! T & S profiles 
     
    8079 
    8180 
    82    SUBROUTINE usr_def_ssh( ptmask, pssh ) 
     81   SUBROUTINE usr_def_istate_ssh( ptmask, pssh ) 
    8382      !!---------------------------------------------------------------------- 
    84       !!                   ***  ROUTINE usr_def_ssh  *** 
     83      !!                   ***  ROUTINE usr_def_istate_ssh  *** 
    8584      !!  
    8685      !! ** Purpose :   Initialization of the ssh 
    8786      !!                Here  OVERFLOW configuration  
    8887      !! 
    89       !! ** Method  :   set ssh 
     88      !! ** Method  :   set ssh to 0 
    9089      !!---------------------------------------------------------------------- 
    9190      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(in   ) ::   ptmask  ! t-point ocean mask   [m] 
     
    9493      ! 
    9594      IF(lwp) WRITE(numout,*) 
    96       IF(lwp) WRITE(numout,*) 'usr_def_ssh : OVERFLOW configuration, analytical definition of initial state' 
     95      IF(lwp) WRITE(numout,*) 'usr_def_istate_ssh : OVERFLOW configuration, analytical definition of initial state' 
    9796      ! 
    9897      pssh(:,:)   = 0._wp 
    9998      ! 
    100    END SUBROUTINE usr_def_ssh 
     99   END SUBROUTINE usr_def_istate_ssh 
    101100 
    102101   !!====================================================================== 
Note: See TracChangeset for help on using the changeset viewer.