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 9750 for NEMO/trunk/src/ICE/icethd.F90 – NEMO

Ignore:
Timestamp:
2018-06-06T14:49:34+02:00 (6 years ago)
Author:
clem
Message:

make ice ponds working in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/ICE/icethd.F90

    r9656 r9750  
    7777      !!                - call ice_thd_sal  for ice desalination 
    7878      !!                - call ice_thd_temp to  retrieve temperature from ice enthalpy 
    79       !!                - call ice_thd_lam for extra lateral ice melt if active virtual thickness distribution 
     79      !!                - call ice_thd_mono for extra lateral ice melt if active virtual thickness distribution 
    8080      !!                - call ice_thd_da   for lateral ice melt 
    8181      !!             - back to the geographic grid 
     
    224224            !                                                       ! --- & Change units of e_i, e_s from J/m2 to J/m3 --- ! 
    225225            ! 
    226             s_i_new   (1:npti) = 0._wp ; dh_s_tot (1:npti) = 0._wp  ! --- some init --- !  (important to have them here)  
    227             dh_i_surf (1:npti) = 0._wp ; dh_i_bott(1:npti) = 0._wp 
    228             dh_snowice(1:npti) = 0._wp ; dh_i_sub (1:npti) = 0._wp ; dh_s_mlt(1:npti) = 0._wp 
     226            s_i_new   (1:npti) = 0._wp ; dh_s_tot(1:npti) = 0._wp  ! --- some init --- !  (important to have them here)  
     227            dh_i_sum  (1:npti) = 0._wp ; dh_i_bom(1:npti) = 0._wp ; dh_i_itm  (1:npti) = 0._wp  
     228            dh_i_sub  (1:npti) = 0._wp ; dh_i_bog(1:npti) = 0._wp 
     229            dh_snowice(1:npti) = 0._wp ; dh_s_mlt(1:npti) = 0._wp 
    229230            ! 
    230231            IF( ln_icedH ) THEN                                     ! --- growing/melting --- ! 
     
    239240                              CALL ice_thd_temp                     ! --- temperature update --- ! 
    240241            ! 
    241 !!gm please create a new logical (l_thd_lam or a better explicit name) set one for all in icestp.F90 module 
    242 !!gm        l_thd_lam = ln_icedH .AND. ( ( nn_virtual_itd == 1 .OR. nn_virtual_itd == 4 ) .AND. jpl == 1 ) 
     242!!gm please create a new logical (l_thd_mono or a better explicit name) set one for all in icestp.F90 module 
     243!!gm        l_thd_mono = ln_icedH .AND. ( ( nn_virtual_itd == 1 .OR. nn_virtual_itd == 4 ) .AND. jpl == 1 ) 
    243244!!gm        by the way, the different options associated with nn_virtual_itd =1 to 4  are quite impossible to identify 
    244245!!gm        more comment to add when ready the namelist, with an explicit print in the ocean.output 
    245246            IF( ln_icedH ) THEN 
    246247               IF ( ( nn_virtual_itd == 1 .OR. nn_virtual_itd == 3 ) .AND. jpl == 1 ) THEN 
    247                               CALL ice_thd_lam                      ! --- extra lateral melting if virtual_itd --- ! 
     248                              CALL ice_thd_mono                      ! --- extra lateral melting if virtual_itd --- ! 
    248249               END IF 
    249250            END IF 
     
    307308 
    308309 
    309    SUBROUTINE ice_thd_lam 
    310       !!----------------------------------------------------------------------- 
    311       !!                   ***  ROUTINE ice_thd_lam ***  
     310   SUBROUTINE ice_thd_mono 
     311      !!----------------------------------------------------------------------- 
     312      !!                   ***  ROUTINE ice_thd_mono ***  
    312313      !!                  
    313314      !! ** Purpose :   Lateral melting in case virtual_itd 
     
    321322      ! 
    322323      DO ji = 1, npti 
    323          zdh_mel = MIN( 0._wp, dh_i_surf(ji) + dh_i_bott(ji) + dh_snowice(ji) + dh_i_sub(ji) ) 
     324         zdh_mel = MIN( 0._wp, dh_i_itm(ji) + dh_i_sum(ji) + dh_i_bom(ji) + dh_snowice(ji) + dh_i_sub(ji) ) 
    324325         IF( zdh_mel < 0._wp .AND. a_i_1d(ji) > 0._wp )  THEN 
    325326            zvi          = a_i_1d(ji) * h_i_1d(ji) 
     
    338339      END DO 
    339340      ! 
    340    END SUBROUTINE ice_thd_lam 
     341   END SUBROUTINE ice_thd_mono 
    341342 
    342343 
Note: See TracChangeset for help on using the changeset viewer.