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/OCE/SBC/sbcice_cice.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/OCE/SBC/sbcice_cice.F90

    r10001 r10009  
    227227      IF( .NOT.ln_rstart ) THEN 
    228228         IF( ln_ice_embd ) THEN            ! embedded sea-ice: deplete the initial ssh below sea-ice area 
    229             sshn(:,:) = sshn(:,:) - snwice_mass(:,:) * r1_rho0 
    230             sshb(:,:) = sshb(:,:) - snwice_mass(:,:) * r1_rho0 
    231  
    232 !!gm This should be put elsewhere....   (same remark for limsbc) 
    233 !!gm especially here it is assumed zstar coordinate, but it can be ztilde.... 
    234             IF( .NOT.ln_linssh ) THEN 
     229            ssh(:,:,Nnn) = ssh(:,:,Nnn) - snwice_mass(:,:) * r1_rho0 
     230            ssh(:,:,Nbb) = ssh(:,:,Nbb) - snwice_mass(:,:) * r1_rho0 
     231            ! 
     232            IF( .NOT.ln_linssh ) THEN     ! modified the now and before vertical mesh and scale factors  
    235233               ! 
    236                DO jk = 1,jpkm1                     ! adjust initial vertical scale factors 
    237                   e3t_n(:,:,jk) = e3t_0(:,:,jk) * ( 1._wp + sshn(:,:) * r1_ht_0(:,:) ) 
    238                   e3t_b(:,:,jk) = e3t_0(:,:,jk) * ( 1._wp + sshb(:,:) * r1_ht_0(:,:) ) 
    239                END DO 
    240                e3t_a(:,:,:) = e3t_b(:,:,:) 
    241                ! Reconstruction of all vertical scale factors at now and before time-steps 
    242                ! ============================================================================= 
    243                ! Horizontal scale factor interpolations 
    244                ! -------------------------------------- 
    245                CALL dom_vvl_interpol( e3t_b(:,:,:), e3u_b(:,:,:), 'U' ) 
    246                CALL dom_vvl_interpol( e3t_b(:,:,:), e3v_b(:,:,:), 'V' ) 
    247                CALL dom_vvl_interpol( e3t_n(:,:,:), e3u_n(:,:,:), 'U' ) 
    248                CALL dom_vvl_interpol( e3t_n(:,:,:), e3v_n(:,:,:), 'V' ) 
    249                CALL dom_vvl_interpol( e3u_n(:,:,:), e3f_n(:,:,:), 'F' ) 
    250                ! Vertical scale factor interpolations 
    251                ! ------------------------------------ 
    252                CALL dom_vvl_interpol( e3t_n(:,:,:), e3w_n (:,:,:), 'W'  ) 
    253                CALL dom_vvl_interpol( e3u_n(:,:,:), e3uw_n(:,:,:), 'UW' ) 
    254                CALL dom_vvl_interpol( e3v_n(:,:,:), e3vw_n(:,:,:), 'VW' ) 
    255                CALL dom_vvl_interpol( e3u_b(:,:,:), e3uw_b(:,:,:), 'UW' ) 
    256                CALL dom_vvl_interpol( e3v_b(:,:,:), e3vw_b(:,:,:), 'VW' ) 
    257                ! t- and w- points depth 
    258                ! ---------------------- 
    259                gdept_n(:,:,1) = 0.5_wp * e3w_n(:,:,1) 
    260                gdepw_n(:,:,1) = 0.0_wp 
    261                gde3w_n(:,:,1) = gdept_n(:,:,1) - sshn(:,:) 
    262                DO jk = 2, jpk 
    263                   gdept_n(:,:,jk) = gdept_n(:,:,jk-1) + e3w_n(:,:,jk) 
    264                   gdepw_n(:,:,jk) = gdepw_n(:,:,jk-1) + e3t_n(:,:,jk-1) 
    265                   gde3w_n(:,:,jk) = gdept_n(:,:,jk  ) - sshn   (:,:) 
    266                END DO 
     234               !                             !* BEFORE fields :  
     235               CALL ssh2e3_before               ! set:      hu , hv , r1_hu, r1_hv  
     236               !                                    !  e3t, e3w, e3u, e3uw, e3v, e3vw 
     237               ! 
     238               !                             !* NOW fields :  
     239               CALL ssh2e3_now                  ! set: ht , hu , hv , r1_hu, r1_hv 
     240               !                                !      e3t, e3w, e3u, e3uw, e3v, e3vw, e3f 
     241               !                                !      gdept_n, gdepw_n, gde3w_n 
    267242            ENDIF 
    268243         ENDIF 
     
    290265      ENDIF 
    291266 
    292       ztmp(:,:)=0.0 
     267      ztmp(:,:) = 0._wp 
    293268 
    294269! Aggregate ice concentration already set in cice_sbc_out (or cice_sbc_init on  
Note: See TracChangeset for help on using the changeset viewer.