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 8971 – NEMO

Changeset 8971


Ignore:
Timestamp:
2017-12-11T11:43:16+01:00 (6 years ago)
Author:
clem
Message:

debug for conservation when Jules option=2 (not the reference). This commit is on behalf of Martin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk.F90

    r8962 r8971  
    10031003      INTEGER  ::   iter                 ! local integer 
    10041004      REAL(wp) ::   zfac, zfac2, zfac3   ! local scalars 
    1005       REAL(wp) ::   zkeff_h, ztsu        ! 
     1005      REAL(wp) ::   zkeff_h, ztsu, ztsu0 ! 
    10061006      REAL(wp) ::   zqc, zqnet           ! 
    10071007      REAL(wp) ::   zhe, zqa0            ! 
     
    10501050               zkeff_h = zfac * zgfac(ji,jj,jl) / &                                    ! Effective conductivity of the snow-ice system divided by thickness 
    10511051                  &      ( rcdic * phs(ji,jj,jl) + rn_cnd_s * MAX( 0.01, phi(ji,jj,jl) ) ) 
    1052                ztsu    = ptsu(ji,jj,jl)                                                ! Store initial surface temperature 
     1052               ztsu    = ptsu(ji,jj,jl)                                                ! Store current iteration temperature 
     1053               ztsu0   = ptsu(ji,jj,jl)                                                ! Store initial surface temperature 
    10531054               zqa0    = qsr_ice(ji,jj,jl) - qsr_ice_tr(ji,jj,jl) + qns_ice(ji,jj,jl)  ! Net initial atmospheric heat flux 
    10541055               ! 
     
    10611062               ptsu   (ji,jj,jl) = MIN( rt0, ztsu ) 
    10621063               qcn_ice(ji,jj,jl) = zkeff_h * ( ptsu(ji,jj,jl) - ptb(ji,jj) ) 
    1063                ! 
     1064               qns_ice(ji,jj,jl) = qns_ice(ji,jj,jl) + dqns_ice(ji,jj,jl) * ( ptsu(ji,jj,jl) - ztsu0 ) 
     1065               qml_ice(ji,jj,jl) = ( qsr_ice(ji,jj,jl) - qsr_ice_tr(ji,jj,jl) + qns_ice(ji,jj,jl) - qcn_ice(ji,jj,jl) )   & 
     1066                             &   * MAX( 0._wp , SIGN( 1._wp, ptsu(ji,jj,jl) - rt0 ) ) 
     1067 
    10641068            END DO 
    10651069         END DO 
Note: See TracChangeset for help on using the changeset viewer.