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/SWG – NEMO

Ignore:
Timestamp:
2020-11-25T14:49:40+01:00 (3 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/SWG/MY_SRC/usrdef_istate.F90

    r13762 r13874  
    99   !! History :  4.0  ! 2016-03  (S. Flavoni) Original code 
    1010   !!             -   ! 2020-03  (A. Nasser) Shallow Water Eq. configuration 
     11   !!                 ! 2020-11  (S. Techene, G. Madec) separate tsuv from ssh 
    1112   !!---------------------------------------------------------------------- 
    1213 
     
    2324   PRIVATE 
    2425 
    25    PUBLIC   usr_def_istate   ! called in istate.F90 
    26    PUBLIC   usr_def_ssh      ! called by domqco.F90 
     26   PUBLIC   usr_def_istate       ! called in 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  *** 
     
    4950      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(  out) ::   pu      ! i-component of the velocity  [m/s]  
    5051      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(  out) ::   pv      ! j-component of the velocity  [m/s]  
    51       REAL(wp), DIMENSION(jpi,jpj)         , INTENT(  out) ::   pssh    ! sea-surface height 
    5252      ! 
    5353      INTEGER :: ji, jj, jk  ! dummy loop indices 
     
    6060      pu  (:,:,:)   = 0._wp        ! ocean at rest 
    6161      pv  (:,:,:)   = 0._wp 
    62       pssh(:,:)     = 0._wp 
    6362      pts (:,:,:,:) = 0._wp            ! not used in SWE 
    6463 
     
    6968 
    7069 
    71    SUBROUTINE usr_def_ssh( ptmask, pssh ) 
     70   SUBROUTINE usr_def_istate_ssh( ptmask, pssh ) 
    7271      !!---------------------------------------------------------------------- 
    73       !!                   ***  ROUTINE usr_def_ssh  *** 
     72      !!                   ***  ROUTINE usr_def_istate_ssh  *** 
    7473      !!  
    7574      !! ** Purpose :   Initialization of ssh 
    7675      !!                Here SWG configuration  
    7776      !! 
    78       !! ** Method  :   set ssh 
     77      !! ** Method  :   set ssh to 0 
    7978      !!---------------------------------------------------------------------- 
    8079      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(in   ) ::   ptmask  ! t-point ocean mask             [m] 
     
    8382      ! 
    8483      IF(lwp) WRITE(numout,*) 
    85       IF(lwp) WRITE(numout,*) 'usr_def_ssh : SWG configuration, analytical definition of initial state' 
     84      IF(lwp) WRITE(numout,*) 'usr_def_istate_ssh : SWG configuration, analytical definition of initial state' 
    8685      ! 
    8786      pssh(:,:)   = 0._wp        ! ocean at rest 
    8887      ! 
    89    END SUBROUTINE usr_def_ssh 
     88   END SUBROUTINE usr_def_istate_ssh 
    9089 
    9190   !!====================================================================== 
Note: See TracChangeset for help on using the changeset viewer.