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 13151 for NEMO/branches/2020/dev_r12527_Gurvan_ShallowWater/src/SWE/sbcice_cice.F90 – NEMO

Ignore:
Timestamp:
2020-06-24T14:38:26+02:00 (4 years ago)
Author:
gm
Message:

result from merge with qco r12983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12527_Gurvan_ShallowWater/src/SWE/sbcice_cice.F90

    r12614 r13151  
    1212   USE oce             ! ocean dynamics and tracers 
    1313   USE dom_oce         ! ocean space and time domain 
     14!!st8 
     15# if ! defined key_qco 
    1416   USE domvvl 
     17# else 
     18   USE domqco 
     19# endif 
     20!!st8 
    1521   USE phycst, only : rcp, rho0, r1_rho0, rhos, rhoi 
    1622   USE in_out_manager  ! I/O manager 
     
    233239!!gm This should be put elsewhere....   (same remark for limsbc) 
    234240!!gm especially here it is assumed zstar coordinate, but it can be ztilde.... 
     241!!st9 
     242#if defined key_qco 
     243            IF( .NOT.ln_linssh )   CALL dom_qco_zgr( Kbb, Kmm, Kaa )   ! interpolation scale factor, depth and water column 
     244#else 
    235245            IF( .NOT.ln_linssh ) THEN 
    236246               ! 
    237247               DO jk = 1,jpkm1                     ! adjust initial vertical scale factors 
    238                   e3t(:,:,jk,Kmm) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kmm)*tmask(:,:,1)/(ht_0(:,:) + 1.0 - tmask(:,:,1)) ) 
    239                   e3t(:,:,jk,Kbb) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kbb)*tmask(:,:,1)/(ht_0(:,:) + 1.0 - tmask(:,:,1)) ) 
    240                ENDDO 
     248                  e3t(:,:,jk,Kmm) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kmm)*r1_ht_0(:,:)*tmask(:,:,jk) ) 
     249                  e3t(:,:,jk,Kbb) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kbb)*r1_ht_0(:,:)*tmask(:,:,jk) ) 
     250               END DO 
    241251               e3t(:,:,:,Krhs) = e3t(:,:,:,Kbb) 
    242252               ! Reconstruction of all vertical scale factors at now and before time-steps 
     
    267277               END DO 
    268278            ENDIF 
     279#endif 
     280!!st9 
    269281         ENDIF 
    270282      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.