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 12915 for NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/ICE/icethd_zdf_bl99.F90 – NEMO

Ignore:
Timestamp:
2020-05-12T19:25:04+02:00 (4 years ago)
Author:
clem
Message:

implement a convergence check on heat diffusion scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/ICE/icethd_zdf_bl99.F90

    r12894 r12915  
    771771          
    772772      END DO  ! End of the do while iterative procedure 
    773        
    774       IF( ln_icectl .AND. lwp ) THEN 
    775          WRITE(numout,*) ' zdti_max : ', zdti_max 
    776          WRITE(numout,*) ' iconv    : ', iconv 
     773      ! 
     774      ! convergence tests (only for output) 
     775      IF( ln_zdf_chkcvg ) THEN 
     776         tice_cvg_1d(1:npti) = 0._wp 
     777         DO jk = 1, nlay_s          ! snow temperature 
     778            DO ji = 1, npti 
     779               tice_cvg_1d(ji) = MAX( tice_cvg_1d(ji), ABS( t_s_1d(ji,jk) - ztsb(ji,jk) ) ) 
     780            ENDDO 
     781         ENDDO 
     782         DO jk = 1, nlay_i          ! ice temperature 
     783            DO ji = 1, npti 
     784               tice_cvg_1d(ji) = MAX( tice_cvg_1d(ji), ABS( t_i_1d(ji,jk) - ztib(ji,jk) ) ) 
     785            ENDDO 
     786         ENDDO 
     787         IF( k_cnd == np_cnd_OFF .OR. k_cnd == np_cnd_EMU ) THEN 
     788            DO ji = 1, npti         ! surface temperature 
     789               tice_cvg_1d(ji) = MAX( tice_cvg_1d(ji), ABS( t_su_1d(ji) - ztsub(ji) ) ) 
     790            ENDDO 
     791         ENDIF 
    777792      ENDIF 
    778        
    779793      ! 
    780794      !----------------------------- 
Note: See TracChangeset for help on using the changeset viewer.