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 10009 for NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/NST/agrif_user.F90 – NEMO

Ignore:
Timestamp:
2018-07-29T11:23:51+02:00 (6 years ago)
Author:
gm
Message:

#1911 (ENHANCE-04): RK3 branch - step II.1 time-level dimension on ssh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/NST/agrif_user.F90

    r9939 r10009  
    190190   Agrif_UseSpecialValue = .TRUE. 
    191191   CALL Agrif_Bc_variable(sshn_id,calledweight=1., procname=interpsshn ) 
    192    hbdy_w(:,:) = 0.e0 ; hbdy_e(:,:) = 0.e0 ; hbdy_n(:,:) = 0.e0 ; hbdy_s(:,:) = 0.e0 
    193    ssha(:,:) = 0.e0 
     192   hbdy_w(:,:) = 0._wp   ;   hbdy_e(:,:) = 0._wp  
     193   hbdy_n(:,:) = 0._wp   ;   hbdy_s(:,:) = 0._wp 
     194   ! 
     195   ssh   (:,:,Naa) = 0._wp 
    194196 
    195197   IF ( ln_dynspg_ts ) THEN 
     
    199201      CALL Agrif_Bc_variable(ub2b_interp_id,calledweight=1.,procname=interpub2b) 
    200202      CALL Agrif_Bc_variable(vb2b_interp_id,calledweight=1.,procname=interpvb2b) 
    201       ubdy_w(:,:) = 0.e0 ; vbdy_w(:,:) = 0.e0 
    202       ubdy_e(:,:) = 0.e0 ; vbdy_e(:,:) = 0.e0 
    203       ubdy_n(:,:) = 0.e0 ; vbdy_n(:,:) = 0.e0 
    204       ubdy_s(:,:) = 0.e0 ; vbdy_s(:,:) = 0.e0 
     203      ubdy_w(:,:) = 0._wp   ;   vbdy_w(:,:) = 0._wp 
     204      ubdy_e(:,:) = 0._wp   ;   vbdy_e(:,:) = 0._wp 
     205      ubdy_n(:,:) = 0._wp   ;   vbdy_n(:,:) = 0._wp 
     206      ubdy_s(:,:) = 0._wp   ;   vbdy_s(:,:) = 0._wp 
    205207   ENDIF 
    206208 
    207209   Agrif_UseSpecialValue = .FALSE.  
    208    ! reset velocities to zero 
    209    ua(:,:,:) = 0. 
    210    va(:,:,:) = 0. 
     210    
     211   ua(:,:,:) = 0._wp   ! reset velocities to zero 
     212   va(:,:,:) = 0._wp 
    211213 
    212214   ! 3. Some controls 
     
    214216   check_namelist = .TRUE. 
    215217 
    216    IF( check_namelist ) THEN  
    217  
    218       ! Check time steps            
     218   IF( check_namelist ) THEN           
     219      ! Check time steps  
    219220      IF( NINT(Agrif_Rhot()) * NINT(rn_Dt) /= Agrif_Parent(rn_Dt) ) THEN 
    220221         WRITE(cl_check1,*)  NINT(Agrif_Parent(rn_Dt)) 
     
    222223         WRITE(cl_check3,*)  NINT(Agrif_Parent(rn_Dt)/Agrif_Rhot()) 
    223224         CALL ctl_stop( 'Incompatible time step between ocean grids',   & 
    224                &               'parent grid value : '//cl_check1    ,   &  
    225                &               'child  grid value : '//cl_check2    ,   &  
    226                &               'value on child grid should be changed to : '//cl_check3 ) 
     225            &                  'parent grid value : '//cl_check1    ,   &  
     226            &                  'child  grid value : '//cl_check2    ,   &  
     227            &                  'value on child grid should be changed to : '//cl_check3 ) 
    227228      ENDIF 
    228229 
     
    292293END SUBROUTINE Agrif_InitValues_cont 
    293294 
     295 
    294296SUBROUTINE agrif_declare_var 
    295297   !!---------------------------------------------------------------------- 
     
    450452 
    451453#if defined key_si3 
     454 
    452455SUBROUTINE Agrif_InitValues_cont_ice 
    453456   !!---------------------------------------------------------------------- 
     
    493496   ! 
    494497END SUBROUTINE Agrif_InitValues_cont_ice 
     498 
    495499 
    496500SUBROUTINE agrif_declare_var_ice 
     
    548552 
    549553END SUBROUTINE agrif_declare_var_ice 
     554 
    550555#endif 
    551556 
    552557 
    553558# if defined key_top 
     559 
    554560SUBROUTINE Agrif_InitValues_cont_top 
    555561   !!---------------------------------------------------------------------- 
     
    808814 
    809815#else 
     816 
    810817SUBROUTINE Subcalledbyagrif 
    811818   !!---------------------------------------------------------------------- 
     
    814821   WRITE(*,*) 'Impossible to be here' 
    815822END SUBROUTINE Subcalledbyagrif 
     823 
    816824#endif 
Note: See TracChangeset for help on using the changeset viewer.