- Timestamp:
- 2017-09-01T15:49:35+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/icethd_dh.F90
r8422 r8486 12 12 #if defined key_lim3 13 13 !!---------------------------------------------------------------------- 14 !! 'key_lim3' LIM3 sea-ice model14 !! 'key_lim3' LIM3 sea-ice model 15 15 !!---------------------------------------------------------------------- 16 16 !! ice_thd_dh : vertical accr./abl. and lateral ablation of sea ice … … 36 36 37 37 !!---------------------------------------------------------------------- 38 !! NEMO/ LIM3 4.0 , UCL - NEMO Consortium (2010)38 !! NEMO/ICE 4.0 , NEMO Consortium (2017) 39 39 !! $Id: icethd_dh.F90 8420 2017-08-08 12:18:46Z clem $ 40 40 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) … … 66 66 !! Vancoppenolle et al.,2009, Ocean Modelling 67 67 !!------------------------------------------------------------------ 68 INTEGER :: ji , jk! dummy loop indices69 INTEGER :: iter 70 71 REAL(wp) :: ztmelts 68 INTEGER :: ji, jk ! dummy loop indices 69 INTEGER :: iter ! local integer 70 71 REAL(wp) :: ztmelts ! local scalar 72 72 REAL(wp) :: zdum 73 73 REAL(wp) :: zfracs ! fractionation coefficient for bottom salt entrapment … … 104 104 REAL(wp) :: zswitch_sal 105 105 106 ! Heat conservation 107 INTEGER :: num_iter_max 106 INTEGER :: num_iter_max ! Heat conservation 108 107 !!------------------------------------------------------------------ 109 108 110 109 ! Discriminate between varying salinity (nn_icesal=2) and prescribed cases (other values) 111 110 SELECT CASE( nn_icesal ) ! varying salinity or not 112 CASE( 1, 3 ) ; zswitch_sal = 0._wp ! prescribed salinity profile113 CASE( 2 ) ; zswitch_sal = 1._wp ! varying salinity profile111 CASE( 1, 3 ) ; zswitch_sal = 0._wp ! prescribed salinity profile 112 CASE( 2 ) ; zswitch_sal = 1._wp ! varying salinity profile 114 113 END SELECT 115 114 … … 127 126 h_i_old (ji,jk) = ht_i_1d(ji) * r1_nlay_i 128 127 eh_i_old(ji,jk) = e_i_1d(ji,jk) * h_i_old(ji,jk) 129 END DO130 END DO128 END DO 129 END DO 131 130 ! 132 131 !------------------------------------------------------------------------------! … … 142 141 END DO 143 142 144 !145 143 !------------------------------------------------------------------------------! 146 144 ! If snow temperature is above freezing point, then snow melts … … 163 161 ! 2) Computing layer thicknesses and enthalpies. ! 164 162 !------------------------------------------------------------! 165 !166 163 DO jk = 1, nlay_i 167 164 DO ji = 1, nidx … … 170 167 END DO 171 168 END DO 172 ! 169 173 170 !------------------------------------------------------------------------------| 174 171 ! 3) Surface ablation and sublimation | … … 389 386 END DO 390 387 391 ! 388 392 389 !------------------------------------------------------------------------------! 393 390 ! 4) Basal growth / melt ! … … 664 661 !! ** Purpose : Compute distribution of precip over the ice 665 662 !!-------------------------------------------------------------------------- 663 !!gm I think it can be usefull to set this as a FUNCTION, not a SUBROUTINE.... 666 664 SUBROUTINE ice_thd_snwblow_2d( pin, pout ) 667 665 REAL(wp), DIMENSION(:,:), INTENT(in ) :: pin ! previous fraction lead ( 1. - a_i_b ) … … 676 674 END SUBROUTINE ice_thd_snwblow_1d 677 675 678 679 676 #else 680 677 !!---------------------------------------------------------------------- 681 678 !! Default option NO LIM3 sea-ice model 682 679 !!---------------------------------------------------------------------- 683 CONTAINS684 SUBROUTINE ice_thd_dh ! Empty routine685 END SUBROUTINE ice_thd_dh686 680 #endif 687 681
Note: See TracChangeset
for help on using the changeset viewer.