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/ISOMIP – 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/ISOMIP/MY_SRC/usrdef_istate.F90

    r13762 r13874  
    99   !! History :  NEMO ! 2016-11 (S. Flavoni)             Original code 
    1010   !!                 ! 2017-02 (P. Mathiot, S. Flavoni) Adapt code to ISOMIP case 
     11   !!                 ! 2020-11 (S. Techene, G. Madec) separate tsuv from ssh 
    1112   !!---------------------------------------------------------------------- 
    1213 
     
    2425   PRIVATE 
    2526 
    26    PUBLIC   usr_def_istate   ! called by istate.F90 
    27    PUBLIC   usr_def_ssh      ! called by domqco.F90 
     27   PUBLIC   usr_def_istate       ! called by istate.F90 
     28   PUBLIC   usr_def_istate_ssh   ! called by domqco.F90 
    2829 
    2930   !!---------------------------------------------------------------------- 
     
    3435CONTAINS 
    3536   
    36    SUBROUTINE usr_def_istate( pdept, ptmask, pts, pu, pv, pssh ) 
     37   SUBROUTINE usr_def_istate( pdept, ptmask, pts, pu, pv ) 
    3738      !!---------------------------------------------------------------------- 
    3839      !!                   ***  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 
    52       ! 
    53       INTEGER  ::   jk     ! dummy loop indices 
    5452      !!---------------------------------------------------------------------- 
    5553      ! 
     
    5957      pu  (:,:,:) = 0._wp        ! ocean at rest 
    6058      pv  (:,:,:) = 0._wp 
    61       pssh(:,:)   = 0._wp 
    62       ! 
    6359      !                          ! T & S profiles 
    6460      pts(:,:,:,jp_tem) = - 1.9 * ptmask(:,:,:)          ! ISOMIP configuration : start from constant T+S fields 
     
    6864 
    6965 
    70    SUBROUTINE usr_def_ssh( ptmask, pssh ) 
     66   SUBROUTINE usr_def_istate_ssh( ptmask, pssh ) 
    7167      !!---------------------------------------------------------------------- 
    72       !!                   ***  ROUTINE usr_def_ssh  *** 
     68      !!                   ***  ROUTINE usr_def_istate_ssh  *** 
    7369      !!  
    7470      !! ** Purpose :   Initialization of ssh 
    7571      !!                Here ISOMIP configuration  
    7672      !! 
    77       !! ** Method  :   set ssh 
     73      !! ** Method  :   set ssh to 0 
    7874      !!---------------------------------------------------------------------- 
    7975      REAL(wp), DIMENSION(jpi,jpj,jpk)     , INTENT(in   ) ::   ptmask  ! t-point ocean mask   [m] 
     
    8278      ! 
    8379      IF(lwp) WRITE(numout,*) 
    84       IF(lwp) WRITE(numout,*) 'usr_def_ssh : ISOMIP configuration, analytical definition of initial state' 
     80      IF(lwp) WRITE(numout,*) 'usr_def_istate_ssh : ISOMIP configuration, analytical definition of initial state' 
    8581      ! 
    8682      pssh(:,:)   = 0._wp 
    8783      ! 
    88    END SUBROUTINE usr_def_ssh 
     84   END SUBROUTINE usr_def_istate_ssh 
    8985 
    9086   !!====================================================================== 
Note: See TracChangeset for help on using the changeset viewer.