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.
limthd.F90 in trunk/NEMO/LIM_SRC – NEMO

source: trunk/NEMO/LIM_SRC/limthd.F90 @ 70

Last change on this file since 70 was 70, checked in by opalod, 20 years ago

CT : BUGFIX044 : Remove the hard coded vertical lenght dz in limmsh.F90 and use fse3t(:,:,1) in limthd.F90

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 23.7 KB
Line 
1MODULE limthd
2   !!======================================================================
3   !!                  ***  MODULE limthd   ***
4   !!              LIM thermo ice model : ice thermodynamic
5   !!======================================================================
6#if defined key_ice_lim
7   !!----------------------------------------------------------------------
8   !!   'key_ice_lim' :                                   LIM sea-ice model
9   !!----------------------------------------------------------------------
10   !!   lim_thd      : thermodynamic of sea ice
11   !!   lim_thd_init : initialisation of sea-ice thermodynamic
12   !!----------------------------------------------------------------------
13   !! * Modules used
14   USE phycst          ! physical constants
15   USE dom_oce         ! ocean space and time domain variables
16   USE lbclnk
17   USE in_out_manager  ! I/O manager
18   USE ice             ! LIM sea-ice variables
19   USE ice_oce         ! sea-ice/ocean variables
20   USE flx_oce         ! sea-ice/ocean forcings variables
21   USE thd_ice         ! LIM thermodynamic sea-ice variables
22   USE dom_ice         ! LIM sea-ice domain
23   USE iceini
24   USE limthd_zdf
25   USE limthd_lac
26   USE limtab
27     
28   IMPLICIT NONE
29   PRIVATE
30
31   !! * Routine accessibility
32   PUBLIC lim_thd       ! called by lim_step
33
34   !! * Module variables
35   REAL(wp)  ::            &  ! constant values
36      epsi20 = 1.e-20   ,  &
37      epsi16 = 1.e-16   ,  &
38      epsi04 = 1.e-04   ,  &
39      zzero  = 0.e0     ,  &
40      zone   = 1.e0
41
42   !! * Substitutions
43#  include "domzgr_substitute.h90"
44#  include "vectopt_loop_substitute.h90"
45   !!-------- -------------------------------------------------------------
46   !!   LIM 2.0 , UCL-LODYC-IPSL  (2003)
47   !!----------------------------------------------------------------------
48
49CONTAINS
50
51   SUBROUTINE lim_thd
52      !!-------------------------------------------------------------------
53      !!                ***  ROUTINE lim_thd  ***       
54      !! 
55      !! ** Purpose : This routine manages the ice thermodynamic.
56      !!         
57      !! ** Action : - Initialisation of some variables
58      !!             - Some preliminary computation (oceanic heat flux
59      !!               at the ice base, snow acc.,heat budget of the leads)
60      !!             - selection of the icy points and put them in an array
61      !!             - call lim_vert_ther for vert ice thermodynamic
62      !!             - back to the geographic grid
63      !!             - selection of points for lateral accretion
64      !!             - call lim_lat_acc  for the ice accretion
65      !!             - back to the geographic grid
66      !!
67      !! ** References :
68      !!       H. Goosse et al. 1996, Bul. Soc. Roy. Sc. Liege, 65, 87-90
69      !!
70      !! History :
71      !!   1.0  !  00-01 (LIM)
72      !!   2.0  !  02-07 (C. Ethe, G. Madec) F90
73      !!---------------------------------------------------------------------
74      !! * Local variables
75      INTEGER  ::   ji, jj,    &   ! dummy loop indices
76         nbpb  ,               &   ! nb of icy pts for thermo. cal.
77         nbpac                     ! nb of pts for lateral accretion
78      REAL(wp) ::  &
79         zfric_umin = 5e-03 ,  &   ! lower bound for the friction velocity
80         zfric_umax = 2e-02        ! upper bound for the friction velocity
81      REAL(wp) ::   &
82         zinda              ,  &   ! switch for test. the val. of concen.
83         zindb, zindg       ,  &   ! switches for test. the val of arg
84         za , zh, zthsnice  ,  &
85         zfric_u            ,  &   ! friction velocity
86         zfnsol             ,  &   ! total non solar heat
87         zfontn             ,  &   ! heat flux from snow thickness
88         zfntlat, zpareff          ! test. the val. of lead heat budget
89      REAL(wp), DIMENSION(jpi,jpj) :: &
90         zhicifp            ,  &   ! ice thickness for outputs
91         zqlbsbq                   ! link with lead energy budget qldif
92      !!-------------------------------------------------------------------
93
94      IF( numit == nstart  )   CALL lim_thd_init  ! Initialization (first time-step only)
95   
96      !-------------------------------------------!
97      !   Initilization of diagnostic variables   !
98      !-------------------------------------------!
99     
100!i est-ce utile?  oui au moins en partie
101      rdvosif(:,:) = 0.e0   ! variation of ice volume at surface
102      rdvobif(:,:) = 0.e0   ! variation of ice volume at bottom
103      fdvolif(:,:) = 0.e0   ! total variation of ice volume
104      rdvonif(:,:) = 0.e0   ! lateral variation of ice volume
105      fstric (:,:) = 0.e0   ! part of solar radiation absorbing inside the ice
106      fscmbq (:,:) = 0.e0   ! linked with fstric
107      ffltbif(:,:) = 0.e0   ! linked with fstric
108      qfvbq  (:,:) = 0.e0   ! linked with fstric
109      rdmsnif(:,:) = 0.e0   ! variation of snow mass per unit area
110      rdmicif(:,:) = 0.e0   ! variation of ice mass per unit area
111      hicifp (:,:) = 0.e0   ! daily thermodynamic ice production.
112
113      DO jj = 1, jpj
114         DO ji = 1, jpi
115            hsnif(ji,jj)  = hsnif(ji,jj) *  MAX( zzero, SIGN( zone , hsnif(ji,jj) - epsi04 ) )
116         END DO
117      END DO
118      IF(l_ctl)   WRITE(numout,*) 'lim_thd  : ', SUM( hsnif(:,:) ) , ' hsnif'
119     
120     
121      !-----------------------------------!
122      !   Treatment of particular cases   !
123      !-----------------------------------!
124     
125      DO jj = 1, jpj
126         DO ji = 1, jpi
127            !  snow is transformed into ice if the original ice cover disappears.
128            zindg         = tms(ji,jj) *  MAX( zzero , SIGN( zone , -hicif(ji,jj) ) )
129            hicif(ji,jj)  = hicif(ji,jj) + zindg * rhosn * hsnif(ji,jj) / rau0
130            hsnif(ji,jj)  = ( zone - zindg ) * hsnif(ji,jj) + zindg * hicif(ji,jj) * ( rau0 - rhoic ) / rhosn
131            dmgwi(ji,jj)  = zindg * (1.0 - frld(ji,jj)) * rhoic * hicif(ji,jj)   ! snow/ice mass
132           
133            !  the lead fraction, frld, must be little than or equal to amax (ice ridging).
134            zthsnice      = hsnif(ji,jj) + hicif(ji,jj)
135            zindb         = tms(ji,jj) * ( 1.0 - MAX( zzero , SIGN( zone , - zthsnice ) ) ) 
136            za            = zindb * MIN( zone, ( 1.0 - frld(ji,jj) ) * uscomi )
137            hsnif (ji,jj) = hsnif(ji,jj)  * za
138            hicif (ji,jj) = hicif(ji,jj)  * za
139            qstoif(ji,jj) = qstoif(ji,jj) * za
140            frld  (ji,jj) = 1.0 - zindb * ( 1.0 - frld(ji,jj) ) / MAX( za , epsi20 )
141           
142            !  the in situ ice thickness, hicif, must be equal to or greater than hiclim.
143            zh            = MAX( zone , zindb * hiclim  / MAX( hicif(ji,jj) , epsi20 ) )
144            hsnif (ji,jj) = hsnif(ji,jj)  * zh
145            hicif (ji,jj) = hicif(ji,jj)  * zh
146            qstoif(ji,jj) = qstoif(ji,jj) * zh
147            frld  (ji,jj) = ( frld(ji,jj) + ( zh - 1.0 ) ) / zh
148         END DO
149      END DO
150      IF(l_ctl) THEN
151         WRITE(numout,*) 'lim_thd: hicif : ', SUM( hicif ), ' hsnif  ', SUM( hsnif  )
152         WRITE(numout,*) 'lim_thd: dmgwi : ', SUM( dmgwi ), ' qstoif ', SUM( qstoif )
153         WRITE(numout,*) 'lim_thd: frld  : ', SUM( frld  )
154      ENDIF
155
156     
157      !-------------------------------!
158      !   Thermodynamics of sea ice   !
159      !-------------------------------!
160     
161      !      Partial computation of forcing for the thermodynamic sea ice model.
162      !--------------------------------------------------------------------------
163
164      !CDIR NOVERRCHK
165      DO jj = 1, jpj
166         !CDIR NOVERRCHK
167         DO ji = 1, jpi
168            zthsnice       = hsnif(ji,jj) + hicif(ji,jj)
169            zindb          = tms(ji,jj) * ( 1.0 - MAX( zzero , SIGN( zone , - zthsnice ) ) ) 
170            pfrld(ji,jj)   = frld(ji,jj)
171            zinda          = 1.0 - MAX( zzero , SIGN( zone , - ( 1.0 - pfrld(ji,jj) ) ) )
172           
173            !  solar irradiance transmission at the mixed layer bottom and used in the lead heat budget
174            thcm(ji,jj)    = 0.e0 
175           
176            !  net downward heat flux from the ice to the ocean, expressed as a function of ocean
177            !  temperature and turbulent mixing (McPhee, 1992)
178            zfric_u        = MAX ( MIN( SQRT( ust2s(ji,jj) ) , zfric_umax ) , zfric_umin )  ! friction velocity
179            fdtcn(ji,jj)  = zindb * rau0 * rcp * 0.006  * zfric_u * ( sst_io(ji,jj) - tfu(ji,jj) ) 
180            qdtcn(ji,jj)  = zindb * fdtcn(ji,jj) * frld(ji,jj) * rdt_ice
181                       
182            !  partial computation of the lead energy budget (qldif)
183            zfontn         = ( sprecip(ji,jj) / rhosn ) * xlsn  !   energy for melting
184            zfnsol         = qnsr_oce(ji,jj)  !  total non solar flux
185            qldif(ji,jj)   = tms(ji,jj) * ( qsr_oce(ji,jj) * ( 1.0 - thcm(ji,jj) )   &
186               &                               + zfnsol + fdtcn(ji,jj) - zfontn     &
187               &                               + ( 1.0 - zindb ) * fsbbq(ji,jj) )   &
188               &                               * frld(ji,jj) * rdt_ice   
189            !  parlat : percentage of energy used for lateral ablation (0.0)
190            zfntlat        = 1.0 - MAX( zzero , SIGN( zone ,  - qldif(ji,jj) ) )
191            zpareff        = 1.0 + ( parlat - 1.0 ) * zinda * zfntlat
192            zqlbsbq(ji,jj) = qldif(ji,jj) * ( 1.0 - zpareff ) / MAX( (1.0 - frld(ji,jj)) * rdt_ice , epsi16 )
193            qldif  (ji,jj) = zpareff *  qldif(ji,jj)
194            qdtcn  (ji,jj) = zpareff * qdtcn(ji,jj)
195           
196            !  energy needed to bring ocean surface layer until its freezing
197            qcmif  (ji,jj) =  rau0 * rcp * fse3t(ji,jj,1) * ( tfu(ji,jj) - sst_io(ji,jj) ) * ( 1 - zinda )
198           
199            !  calculate oceanic heat flux.
200            fbif   (ji,jj) = zindb * (  fsbbq(ji,jj) / MAX( (1.0 - frld(ji,jj)) , epsi20 ) + fdtcn(ji,jj) )
201           
202            ! computation of the daily thermodynamic ice production (only needed for output)
203            zhicifp(ji,jj) = hicif(ji,jj) * ( 1.0 - frld(ji,jj) )
204         END DO
205      END DO
206     
207     
208      !         Select icy points and fulfill arrays for the vectorial grid.
209      !----------------------------------------------------------------------
210      nbpb = 0
211      DO jj = 1, jpj
212         DO ji = 1, jpi
213            IF ( frld(ji,jj) < 1.0 ) THEN     
214               nbpb      = nbpb + 1
215               npb(nbpb) = (jj - 1) * jpi + ji
216            ENDIF
217         END DO
218      END DO
219      IF(l_ctl) THEN
220         WRITE(numout,*) 'lim_thd: pfrld ', SUM( pfrld  ), ' thcm    ', SUM( thcm    )
221         WRITE(numout,*) 'lim_thd: fdtcn ', SUM( fdtcn  ), ' qdtcn   ', SUM( qdtcn   )
222         WRITE(numout,*) 'lim_thd: qldif ', SUM( qldif  ), ' zqlbsbq ', SUM( zqlbsbq )
223         WRITE(numout,*) 'lim_thd: qcmif ', SUM( qcmif  ), ' fbif    ', SUM( fbif    )
224         WRITE(numout,*) 'lim_thd: qcmif ', SUM( qcmif*tms )
225         WRITE(numout,*) 'lim_thd: zhicifp', SUM( zhicifp )
226         WRITE(numout,*) 'limthd : nbpb = ', nbpb
227      ENDIF
228     
229     
230      ! If there is no ice, do nothing. Otherwise, compute Top and Bottom accretion/ablation
231      !------------------------------------------------------------------------------------
232
233      IF ( nbpb > 0) THEN
234         
235         !  put the variable in a 1-D array for thermodynamics process
236         CALL tab_2d_1d( nbpb, frld_1d    (1:nbpb)     , frld       , jpi, jpj, npb(1:nbpb) )
237         CALL tab_2d_1d( nbpb, h_ice_1d   (1:nbpb)     , hicif      , jpi, jpj, npb(1:nbpb) )
238         CALL tab_2d_1d( nbpb, h_snow_1d  (1:nbpb)     , hsnif      , jpi, jpj, npb(1:nbpb) )
239         CALL tab_2d_1d( nbpb, sist_1d    (1:nbpb)     , sist       , jpi, jpj, npb(1:nbpb) )
240         CALL tab_2d_1d( nbpb, tbif_1d    (1:nbpb , 1 ), tbif(:,:,1), jpi, jpj, npb(1:nbpb) )
241         CALL tab_2d_1d( nbpb, tbif_1d    (1:nbpb , 2 ), tbif(:,:,2), jpi, jpj, npb(1:nbpb) )
242         CALL tab_2d_1d( nbpb, tbif_1d    (1:nbpb , 3 ), tbif(:,:,3), jpi, jpj, npb(1:nbpb) )
243         CALL tab_2d_1d( nbpb, qsr_ice_1d (1:nbpb)     , qsr_ice    , jpi, jpj, npb(1:nbpb) )
244         CALL tab_2d_1d( nbpb, fr1_i0_1d  (1:nbpb)     , fr1_i0     , jpi, jpj, npb(1:nbpb) )
245         CALL tab_2d_1d( nbpb, fr2_i0_1d  (1:nbpb)     , fr2_i0     , jpi, jpj, npb(1:nbpb) )
246         CALL tab_2d_1d( nbpb, qnsr_ice_1d(1:nbpb)     , qnsr_ice   , jpi, jpj, npb(1:nbpb) )
247         CALL tab_2d_1d( nbpb, qla_ice_1d (1:nbpb)     , qla_ice    , jpi, jpj, npb(1:nbpb) )
248         CALL tab_2d_1d( nbpb, dqla_ice_1d(1:nbpb)     , dqla_ice   , jpi, jpj, npb(1:nbpb) )
249         CALL tab_2d_1d( nbpb, dqns_ice_1d(1:nbpb)     , dqns_ice   , jpi, jpj, npb(1:nbpb) )
250         CALL tab_2d_1d( nbpb, tfu_1d     (1:nbpb)     , tfu        , jpi, jpj, npb(1:nbpb) )
251         CALL tab_2d_1d( nbpb, sprecip_1d (1:nbpb)     , sprecip    , jpi, jpj, npb(1:nbpb) ) 
252         CALL tab_2d_1d( nbpb, fbif_1d    (1:nbpb)     , fbif       , jpi, jpj, npb(1:nbpb) )
253         CALL tab_2d_1d( nbpb, thcm_1d    (1:nbpb)     , thcm       , jpi, jpj, npb(1:nbpb) )
254         CALL tab_2d_1d( nbpb, qldif_1d   (1:nbpb)     , qldif      , jpi, jpj, npb(1:nbpb) )
255         CALL tab_2d_1d( nbpb, qstbif_1d  (1:nbpb)     , qstoif     , jpi, jpj, npb(1:nbpb) )
256         CALL tab_2d_1d( nbpb, rdmicif_1d (1:nbpb)     , rdmicif    , jpi, jpj, npb(1:nbpb) )
257         CALL tab_2d_1d( nbpb, dmgwi_1d   (1:nbpb)     , dmgwi      , jpi, jpj, npb(1:nbpb) )
258         CALL tab_2d_1d( nbpb, qlbbq_1d   (1:nbpb)     , zqlbsbq    , jpi, jpj, npb(1:nbpb) )
259 
260         CALL lim_thd_zdf( 1, nbpb )       !  compute ice growth
261         
262         !  back to the geographic grid.
263         CALL tab_1d_2d( nbpb, frld       , npb, frld_1d   (1:nbpb)     , jpi, jpj )
264         CALL tab_1d_2d( nbpb, hicif      , npb, h_ice_1d  (1:nbpb)     , jpi, jpj )
265         CALL tab_1d_2d( nbpb, hsnif      , npb, h_snow_1d (1:nbpb)     , jpi, jpj )
266         CALL tab_1d_2d( nbpb, sist       , npb, sist_1d   (1:nbpb)     , jpi, jpj )
267         CALL tab_1d_2d( nbpb, tbif(:,:,1), npb, tbif_1d   (1:nbpb , 1 ), jpi, jpj )   
268         CALL tab_1d_2d( nbpb, tbif(:,:,2), npb, tbif_1d   (1:nbpb , 2 ), jpi, jpj )   
269         CALL tab_1d_2d( nbpb, tbif(:,:,3), npb, tbif_1d   (1:nbpb , 3 ), jpi, jpj )   
270         CALL tab_1d_2d( nbpb, fscmbq     , npb, fscbq_1d  (1:nbpb)     , jpi, jpj )
271         CALL tab_1d_2d( nbpb, ffltbif    , npb, fltbif_1d (1:nbpb)     , jpi, jpj )
272         CALL tab_1d_2d( nbpb, fstric     , npb, fstbif_1d (1:nbpb)     , jpi, jpj )
273         CALL tab_1d_2d( nbpb, qldif      , npb, qldif_1d  (1:nbpb)     , jpi, jpj )
274         CALL tab_1d_2d( nbpb, qfvbq      , npb, qfvbq_1d  (1:nbpb)     , jpi, jpj )
275         CALL tab_1d_2d( nbpb, qstoif     , npb, qstbif_1d (1:nbpb)     , jpi, jpj )
276         CALL tab_1d_2d( nbpb, rdmicif    , npb, rdmicif_1d(1:nbpb)     , jpi, jpj )
277         CALL tab_1d_2d( nbpb, dmgwi      , npb, dmgwi_1d  (1:nbpb)     , jpi, jpj )
278         CALL tab_1d_2d( nbpb, rdmsnif    , npb, rdmsnif_1d(1:nbpb)     , jpi, jpj )
279         CALL tab_1d_2d( nbpb, rdvosif    , npb, dvsbq_1d  (1:nbpb)     , jpi, jpj )
280         CALL tab_1d_2d( nbpb, rdvobif    , npb, dvbbq_1d  (1:nbpb)     , jpi, jpj )
281         CALL tab_1d_2d( nbpb, fdvolif    , npb, dvlbq_1d  (1:nbpb)     , jpi, jpj )
282         CALL tab_1d_2d( nbpb, rdvonif    , npb, dvnbq_1d  (1:nbpb)     , jpi, jpj ) 
283
284 
285      ENDIF
286
287     
288      !      Up-date sea ice thickness.
289      !---------------------------------
290      DO jj = 1, jpj
291         DO ji = 1, jpi
292            phicif(ji,jj) = hicif(ji,jj) 
293            hicif(ji,jj)  = hicif(ji,jj) *  ( zone -  MAX( zzero, SIGN( zone, - ( 1.0 - frld(ji,jj) ) ) ) )
294         END DO
295      END DO
296
297     
298      !      Tricky trick : add 2 to frld in the Southern Hemisphere.
299      !----------------------------------------------------------
300      DO jj = 1, njeqm1      !ibug in mpp
301         DO ji = 1, jpi
302            frld(ji,jj) = frld(ji,jj) + 2.0
303         END DO
304      END DO
305     
306     
307      !     Select points for lateral accretion (this occurs when heat exchange
308      !     between ice and ocean is negative; ocean losing heat)
309      !-----------------------------------------------------------------
310      nbpac = 0
311      DO jj = 1, jpj
312         DO ji = 1, jpi
313!i yes!     IF ( ( qcmif(ji,jj) - qldif(ji,jj) ) > 0.e0 ) THEN
314            IF ( tms(ji,jj) * ( qcmif(ji,jj) - qldif(ji,jj) ) > 0.e0 ) THEN
315               nbpac = nbpac + 1
316               npac( nbpac ) = (jj - 1) * jpi + ji
317            ENDIF
318         END DO
319      END DO
320     
321      IF(l_ctl) THEN
322         WRITE(numout,*) 'lim_thd : phicif ', SUM( phicif ), ' hicif ', SUM( hicif )
323         WRITE(numout,*) 'lim_thd : nbpac = ', nbpac
324      ENDIF
325
326     
327      !
328      !     If ocean gains heat do nothing ; otherwise, one performs lateral accretion
329      !--------------------------------------------------------------------------------
330
331      IF( nbpac > 0 ) THEN
332         
333         !...Put the variable in a 1-D array for lateral accretion
334         CALL tab_2d_1d( nbpac, frld_1d   (1:nbpac)     , frld       , jpi, jpj, npac(1:nbpac) )
335         CALL tab_2d_1d( nbpac, h_snow_1d (1:nbpac)     , hsnif      , jpi, jpj, npac(1:nbpac) )
336         CALL tab_2d_1d( nbpac, h_ice_1d  (1:nbpac)     , hicif      , jpi, jpj, npac(1:nbpac) )
337         CALL tab_2d_1d( nbpac, tbif_1d   (1:nbpac , 1 ), tbif(:,:,1), jpi, jpj, npac(1:nbpac) )   
338         CALL tab_2d_1d( nbpac, tbif_1d   (1:nbpac , 2 ), tbif(:,:,2), jpi, jpj, npac(1:nbpac) )   
339         CALL tab_2d_1d( nbpac, tbif_1d   (1:nbpac , 3 ), tbif(:,:,3), jpi, jpj, npac(1:nbpac) )   
340         CALL tab_2d_1d( nbpac, qldif_1d  (1:nbpac)     , qldif      , jpi, jpj, npac(1:nbpac) )
341         CALL tab_2d_1d( nbpac, qcmif_1d  (1:nbpac)     , qcmif      , jpi, jpj, npac(1:nbpac) )
342         CALL tab_2d_1d( nbpac, qstbif_1d (1:nbpac)     , qstoif     , jpi, jpj, npac(1:nbpac) )
343         CALL tab_2d_1d( nbpac, rdmicif_1d(1:nbpac)     , rdmicif    , jpi, jpj, npac(1:nbpac) )
344         CALL tab_2d_1d( nbpac, dvlbq_1d  (1:nbpac)     , fdvolif    , jpi, jpj, npac(1:nbpac) )
345         CALL tab_2d_1d( nbpac, tfu_1d    (1:nbpac)     , tfu        , jpi, jpj, npac(1:nbpac) )
346       
347         !  call lateral accretion routine.
348         CALL lim_thd_lac( 1 , nbpac )
349         
350         !   back to the geographic grid
351         CALL tab_1d_2d( nbpac, frld       , npac(1:nbpac), frld_1d   (1:nbpac)     , jpi, jpj )
352         CALL tab_1d_2d( nbpac, hsnif      , npac(1:nbpac), h_snow_1d (1:nbpac)     , jpi, jpj )
353         CALL tab_1d_2d( nbpac, hicif      , npac(1:nbpac), h_ice_1d  (1:nbpac)     , jpi, jpj )
354         CALL tab_1d_2d( nbpac, tbif(:,:,1), npac(1:nbpac), tbif_1d   (1:nbpac , 1 ), jpi, jpj )
355         CALL tab_1d_2d( nbpac, tbif(:,:,2), npac(1:nbpac), tbif_1d   (1:nbpac , 2 ), jpi, jpj )
356         CALL tab_1d_2d( nbpac, tbif(:,:,3), npac(1:nbpac), tbif_1d   (1:nbpac , 3 ), jpi, jpj )
357         CALL tab_1d_2d( nbpac, qstoif     , npac(1:nbpac), qstbif_1d (1:nbpac)     , jpi, jpj )
358         CALL tab_1d_2d( nbpac, rdmicif    , npac(1:nbpac), rdmicif_1d(1:nbpac)     , jpi, jpj )
359         CALL tab_1d_2d( nbpac, fdvolif    , npac(1:nbpac), dvlbq_1d  (1:nbpac)     , jpi, jpj )
360       
361      ENDIF
362       
363       
364      !      Recover frld values between 0 and 1 in the Southern Hemisphere (tricky trick)
365      !      Update daily thermodynamic ice production.   
366      !------------------------------------------------------------------------------
367       
368      DO jj = 1, jpj
369         DO ji = 1, jpi
370            frld  (ji,jj) = MIN( frld(ji,jj), ABS( frld(ji,jj) - 2.0 ) )
371            hicifp(ji,jj) =  hicif(ji,jj) * ( 1.0 - frld(ji,jj) ) - zhicifp(ji,jj) + hicifp(ji,jj)
372         END DO
373      END DO
374
375      IF(l_ctl) THEN
376         WRITE(numout,*) ' lim_thd  end  '
377         WRITE(numout,*) '  hicif ', SUM( hicif  ), '  hsnif ', SUM( hsnif  )
378         WRITE(numout,*) '  frld  ', SUM( frld   ), '  hicifp', SUM( hicifp )
379         WRITE(numout,*) '  phicif', SUM( phicif ), '  pfrld ', SUM( pfrld  )
380         WRITE(numout,*) '  sist  ', SUM( sist   ), '  tbif 1', SUM( tbif  (:,:,1) )
381         WRITE(numout,*) '  tbif 2', SUM( tbif(:,:,2) ), '  tbif 3', SUM( tbif  (:,:,3) )
382         WRITE(numout,*) '  fdtcn ', SUM( fdtcn  ), ' qdtcn ', SUM( qdtcn )
383         WRITE(numout,*) '  qstoif', SUM( qstoif ), '  fsbbq ', SUM( fsbbq  )
384      ENDIF
385
386    END SUBROUTINE lim_thd
387
388
389    SUBROUTINE lim_thd_init
390      !!-------------------------------------------------------------------
391      !!                   ***  ROUTINE lim_thd_init ***
392      !!                 
393      !! ** Purpose :   Physical constants and parameters linked to the ice
394      !!      thermodynamics
395      !!
396      !! ** Method  :   Read the namicethd namelist and check the ice-thermo
397      !!       parameter values called at the first timestep (nit000)
398      !!
399      !! ** input   :   Namelist namicether
400      !!
401      !! history :
402      !!  8.5  ! 03-08 (C. Ethe) original code
403      !!-------------------------------------------------------------------
404      NAMELIST/namicethd/ hmelt , hiccrit, hicmin, hiclim, amax  ,        &
405         &                swiqst, sbeta  , parlat, hakspl, hibspl, exld,  &
406         &                hakdif, hnzst  , thth  , parsub, alphs
407      !!-------------------------------------------------------------------
408     
409
410      ! Define the initial parameters
411      ! -------------------------
412      REWIND( numnam_ice )
413      READ  ( numnam_ice , namicethd )
414      IF(lwp) THEN
415         WRITE(numout,*)
416         WRITE(numout,*)'lim_thd_init : ice parameters for ice thermodynamic computation '
417         WRITE(numout,*)'~~~~~~~~~~~~'
418         WRITE(numout,*)'       maximum melting at the bottom                           hmelt        = ', hmelt
419         WRITE(numout,*)'       ice thick. for lateral accretion in NH (SH)             hiccrit(1/2) = ', hiccrit
420         WRITE(numout,*)'       ice thick. corr. to max. energy stored in brine pocket  hicmin       = ', hicmin 
421         WRITE(numout,*)'       minimum ice thickness                                   hiclim       = ', hiclim 
422         WRITE(numout,*)'       maximum lead fraction                                   amax         = ', amax
423         WRITE(numout,*)'       energy stored in brine pocket (=1) or not (=0)     swiqst       = ', swiqst 
424         WRITE(numout,*)'       numerical carac. of the scheme for diffusion in ice '
425         WRITE(numout,*)'       Cranck-Nicholson (=0.5), implicit (=1), explicit (=0)   sbeta        = ', sbeta
426         WRITE(numout,*)'       percentage of energy used for lateral ablation          parlat       = ', parlat
427         WRITE(numout,*)'       slope of distr. for Hakkinen-Mellor lateral melting     hakspl       = ', hakspl 
428         WRITE(numout,*)'       slope of distribution for Hibler lateral melting        hibspl       = ', hibspl
429         WRITE(numout,*)'       exponent for leads-closure rate                         exld         = ', exld
430         WRITE(numout,*)'       coefficient for diffusions of ice and snow              hakdif       = ', hakdif
431         WRITE(numout,*)'       threshold thick. for comp. of eq. thermal conductivity  zhth         = ', thth 
432         WRITE(numout,*)'       thickness of the surf. layer in temp. computation       hnzst        = ', hnzst
433         WRITE(numout,*)'       switch for snow sublimation  (=1) or not (=0)           parsub       = ', parsub 
434         WRITE(numout,*)'       coefficient for snow density when snow ice formation    alphs        = ', alphs
435      ENDIF
436           
437      uscomi = 1.0 / ( 1.0 - amax )   ! inverse of minimum lead fraction
438      rcdsn = hakdif * rcdsn 
439      rcdic = hakdif * rcdic
440     
441      IF ( ( hsndif > 100.e0 ) .OR. ( hicdif > 100.e0 ) ) THEN
442         cnscg = 0.e0
443      ELSE
444         cnscg = rcpsn / rcpic   ! ratio  rcpsn/rcpic
445      ENDIF
446 
447   END SUBROUTINE lim_thd_init
448
449#else
450   !!----------------------------------------------------------------------
451   !!   Default option          Dummy module           NO LIM sea-ice model
452   !!----------------------------------------------------------------------
453CONTAINS
454   SUBROUTINE lim_thd         ! Dummy routine
455   END SUBROUTINE lim_thd
456#endif
457
458   !!======================================================================
459END MODULE limthd
Note: See TracBrowser for help on using the repository browser.