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.
ice.F90 in branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_3 – NEMO

source: branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_3/ice.F90 @ 1859

Last change on this file since 1859 was 1859, checked in by gm, 14 years ago

ticket:#665 step 2 & 3: heat content in qns & new forcing terms

  • Property svn:keywords set to Id
File size: 29.5 KB
Line 
1MODULE ice
2   !!======================================================================
3   !!                        ***  MODULE ice  ***
4   !! LIM-3 sea ice :   variables defined in memory
5   !!=====================================================================
6   !! History :  3.0  ! 2008-03  (M. Vancoppenolle)  LIM3 original code
7   !!            3.1  ! 2010-05  (Y. Aksenov, M. Vancoppenolle, G. Madec) add heat content exchanges
8   !!----------------------------------------------------------------------
9#if defined key_lim3
10   !!----------------------------------------------------------------------
11   !!   'key_lim3' :                                   LIM3 sea-ice model
12   !!----------------------------------------------------------------------
13   USE par_ice          ! LIM sea-ice parameters
14
15   IMPLICIT NONE
16   PRIVATE
17
18   !!----------------------------------------------------------------------
19   !! LIM3 by the use of sweat, agile fingers and sometimes brain juice,
20   !!  was developed in Louvain-la-Neuve by :
21   !!    * Martin Vancoppenolle (UCL-ASTR, Belgium)
22   !!    * Sylvain Bouillon (UCL-ASTR, Belgium)
23   !!    * Miguel Angel Morales Maqueda (POL, UK)
24   !!
25   !! Based on extremely valuable earlier work by
26   !!    * Thierry Fichefet
27   !!    * Hugues Goosse
28   !!
29   !! The following persons also contributed to the code in various ways
30   !!    * Gurvan Madec, Claude Talandier, Christian Ethe
31   !!      and Rachid Benshila (LOCEAN-IPSL, France)
32   !!    * Xavier Fettweis (UCL-ASTR), Ralph Timmermann (AWI, Germany)
33   !!    * Bill Lipscomb (LANL), Cecilia Bitz (UWa) and Elisabeth Hunke (LANL), USA.
34   !!
35   !! (c) UCL-ASTR, 2005-2008
36   !!
37   !! For more info, the interested user is kindly invited to consult the following references
38   !!    For model description and validation :
39   !!    * Vancoppenolle et al., Ocean Modelling, 2008a.
40   !!    * Vancoppenolle et al., Ocean Modelling, 2008b.
41   !!    For a specific description of EVP :
42   !!    * Bouillon et al., in prep for 2008.
43   !!
44   !!======================================================================
45   !!                                                                     |
46   !!            *****************************************                |
47   !!            *                                       *                |
48   !! ************ I C E   S T A T E   V A R I A B L E S **************** |
49   !!            *                                       *                |
50   !!            *****************************************                |
51   !!                                                                     |
52   !! Introduction :                                                      |
53   !! --------------                                                      |
54   !!                                                                     |
55   !! Every ice-covered grid cell is characterized by a series of state   |
56   !! variables. To account for unresolved spatial variability in ice     |
57   !! thickness, the ice cover in divided in ice thickness categories.    |
58   !!                                                                     |
59   !! Sea ice state variables depend on the ice thickness category        |
60   !!                                                                     |
61   !! Those variables are divided into two groups                         |
62   !! * Extensive (or global) variables.                                  |
63   !!   These are the variables that are transported by all means         |
64   !! * Intensive (or equivalent) variables.                              |
65   !!   These are the variables that are either physically more           |
66   !!   meaningful and/or used in ice thermodynamics                      |
67   !!                                                                     |
68   !! Routines in limvar.F90 perform conversions                          |
69   !!  - lim_var_glo2eqv  : from global to equivalent variables           |
70   !!  - lim_var_eqv2glo  : from equivalent to global variables           |
71   !!                                                                     |
72   !! For various purposes, the sea ice state variables have sometimes    |
73   !! to be aggregated over all ice thickness categories. This operation  |
74   !! is done in :                                                        |
75   !!  - lim_var_agg                                                      |
76   !!                                                                     |
77   !! in icestp.F90, the routines that compute the changes in the ice     |
78   !! state variables are called                                          |
79   !! - lim_dyn : ice dynamics                                            |
80   !! - lim_trp : ice transport                                           |
81   !! - lim_itd_me : mechanical redistribution (ridging and rafting)      |
82   !! - lim_thd : ice halo-thermodynamics                                 |
83   !! - lim_itd_th : thermodynamic changes in ice thickness distribution  |
84   !!                and creation of new ice                              |
85   !!                                                                     |
86   !! See the associated routines for more information                    |
87   !!                                                                     |
88   !! List of ice state variables :                                       |
89   !! -----------------------------                                       |
90   !!                                                                     |
91   !!-------------|-------------|---------------------------------|-------|
92   !!   name in   |   name in   |              meaning            | units |
93   !! 2D routines | 1D routines |                                 |       |
94   !!-------------|-------------|---------------------------------|-------|
95   !!                                                                     |
96   !! ******************************************************************* |
97   !! ***         Dynamical variables (prognostic)                    *** |
98   !! ******************************************************************* |
99   !!                                                                     |
100   !! u_ice       |      -      |    Comp. U of the ice velocity  | m/s   |
101   !! v_ice       |      -      |    Comp. V of the ice velocity  | m/s   |
102   !!                                                                     |
103   !! ******************************************************************* |
104   !! ***         Category dependent state variables (prognostic)     *** |
105   !! ******************************************************************* |
106   !!                                                                     |
107   !! ** Global variables                                                 |
108   !!                                                                     |
109   !!-------------|-------------|---------------------------------|-------|
110   !! a_i         | a_i_b       |    Ice concentration            |       |
111   !! v_i         |      -      |    Ice volume per unit area     | m     |
112   !! v_s         |      -      |    Snow volume per unit area    | m     |
113   !! smv_i       |      -      |    Sea ice salt content         | ppt.m |
114   !! oa_i        !      -      !    Sea ice areal age content    | day   |
115   !! e_i         !      -      !    Ice enthalpy                 | 10^9 J|
116   !!      -      ! q_i_b       !    Ice enthalpy per unit vol.   | J/m3  |
117   !! e_s         !      -      !    Snow enthalpy                | 10^9 J|
118   !!      -      ! q_s_b       !    Snow enthalpy per unit vol.  | J/m3  |
119   !!                                                                     |
120   !!-------------|-------------|---------------------------------|-------|
121   !!                                                                     |
122   !! ** Equivalent variables                                             |
123   !!                                                                     |
124   !!-------------|-------------|---------------------------------|-------|
125   !!                                                                     |
126   !! ht_i        | ht_i_b      |    Ice thickness                | m     |
127   !! ht_s        ! ht_s_b      |    Snow depth                   | m     |
128   !! sm_i        ! sm_i_b      |    Sea ice bulk salinity        ! ppt   |
129   !! s_i         ! s_i_b       |    Sea ice salinity profile     ! ppt   |
130   !! o_i         !      -      |    Sea ice Age                  ! days  |
131   !! t_i         ! t_i_b       |    Sea ice temperature          ! K     |
132   !! t_s         ! t_s_b       |    Snow temperature             ! K     |
133   !! t_su        ! t_su_b      |    Sea ice surface temperature  ! K     |
134   !!                                                                     |
135   !! notes: the ice model only sees a bulk (i.e., vertically averaged)   |
136   !!        salinity, except in thermodynamic computations, for which    |
137   !!        the salinity profile is computed as a function of bulk       |
138   !!        salinity                                                     |
139   !!                                                                     |
140   !!        the sea ice surface temperature is not associated to any     |
141   !!        heat content. Therefore, it is not a state variable and      |
142   !!        does not have to be advected. Nevertheless, it has to be     |
143   !!        computed to determine whether the ice is melting or not      |
144   !!                                                                     |
145   !! ******************************************************************* |
146   !! ***         Category-summed state variables (diagnostic)        *** |
147   !! ******************************************************************* |
148   !! at_i        | at_i_b      |    Total ice concentration      |       |
149   !! vt_i        |      -      |    Total ice vol. per unit area | m     |
150   !! vt_s        |      -      |    Total snow vol. per unit ar. | m     |
151   !! smt_i       |      -      |    Mean sea ice salinity        | ppt   |
152   !! tm_i        |      -      |    Mean sea ice temperature     | K     |
153   !! ot_i        !      -      !    Sea ice areal age content    | day   |
154   !! et_i        !      -      !    Total ice enthalpy           | 10^9 J|
155   !! et_s        !      -      !    Total snow enthalpy          | 10^9 J|
156   !! bv_i        !      -      !    Mean relative brine volume   | ???   |
157   !!                                                                     |
158   !!                                                                     |
159   !!=====================================================================
160
161   LOGICAL, PUBLIC ::   con_i = .false.   ! switch for conservation test
162
163   !!--------------------------------------------------------------------------
164   !! * Share Module variables
165   !!--------------------------------------------------------------------------
166   REAL(wp), PUBLIC ::   rdt_ice      !: ice time step
167
168   INTEGER , PUBLIC ::   &     !!: ** ice-dynamic namelist (namicedyn) **
169      nbiter = 1      ,  &     !: number of sub-time steps for relaxation
170      nbitdr = 250    ,  &     !: maximum number of iterations for relaxation
171      nevp   = 400    ,  &     !: number of iterations for subcycling
172      nlay_i = 5               !: number of layers in the ice
173
174   REAL(wp), PUBLIC ::   &     !!: ** ice-dynamic namelist (namicedyn) **
175      epsd   = 1.0e-20,  &     !: tolerance parameter for dynamic
176      alpha  = 0.5    ,  &     !: coefficient for semi-implicit coriolis
177      dm     = 0.6e+03,  &     !: diffusion constant for dynamics
178      om     = 0.5    ,  &     !: relaxation constant
179      resl   = 5.0e-05,  &     !: maximum value for the residual of relaxation
180      cw     = 5.0e-03,  &     !: drag coefficient for oceanic stress
181      angvg  = 0.0    ,  &     !: turning angle for oceanic stress
182      pstar  = 1.0e+04,  &     !: determines ice strength (N/M), Hibler JPO79
183      c_rhg  = 20.0   ,  &     !: determines changes in ice strength
184      etamn  = 0.0e+07,  &     !: minimun value for viscosity : has to be 0
185      creepl = 2.0e-08,  &     !: creep limit : has to be under 1.0e-9
186      ecc    = 2.0    ,  &  !: eccentricity of the elliptical yield curve
187      ahi0   = 350.e0 ,  &  !: sea-ice hor. eddy diffusivity coeff. (m2/s)
188      telast = 2880.0 ,  &  !: timescale for elastic waves (s) !SB
189      alphaevp = 1.0  ,  &  !: coeficient of the internal stresses !SB
190      unit_fac = 1.0e9      !: conversion factor for ice / snow enthalpy
191
192   REAL(wp), PUBLIC ::   & !!: ** ice-salinity namelist (namicesal) **
193      s_i_max  = 20.0 ,  &  !: maximum ice salinity (ppt)
194      s_i_min  =  0.1 ,  &  !: minimum ice salinity (ppt)
195      s_i_0    =  3.5 ,  &  !: 1st sal. value for the computation of sal .prof.
196                                !: (ppt)
197      s_i_1    =  4.5 ,  &  !: 2nd sal. value for the computation of sal .prof.
198                                !: (ppt)
199      sal_G    = 5.00 ,  &  !: restoring salinity for gravity drainage
200                                !: (ppt)
201      sal_F    = 2.50 ,  &  !: restoring salinity for flushing
202                                !: (ppt)
203      time_G   = 1.728e+06,&!: restoring time constant for gravity drainage
204                                !: (= 20 days, in s)
205      time_F   = 8.640e+05,&!: restoring time constant for gravity drainage
206                                !: (= 10 days, in s)
207      bulk_sal = 4.0        !: bulk salinity (ppt) in case of constant salinity
208
209   INTEGER , PUBLIC ::   & !!: ** ice-salinity namelist (namicesal) **
210      num_sal  = 1    ,  &  !: salinity configuration used in the model
211                                !: 1 - s constant in space and time
212                                !: 2 - prognostic salinity (s(z,t))
213                                !: 3 - salinity profile, constant in time
214                                !: 4 - salinity variations affect only ice
215                                !      thermodynamics
216      sal_prof = 1    ,  &  !: salinity profile or not
217      thcon_i_swi = 1       !: thermal conductivity of Untersteiner (1964) (1) or
218   !: Pringle et al (2007) (2)
219
220   REAL(wp), PUBLIC ::   & !!: ** ice-mechanical redistribution namelist (namiceitdme)
221      Cs = 0.25       ,  & !!: fraction of shearing energy contributing to ridging           
222      Cf = 17.0       ,  & !!: ratio of ridging work to PE loss
223      fsnowrdg = 0.5  ,  & !!: fractional snow loss to the ocean during ridging
224      fsnowrft = 0.5  ,  & !!: fractional snow loss to the ocean during ridging
225      Gstar = 0.15    ,  & !!: fractional area of young ice contributing to ridging
226      astar = 0.05    ,  & !!: equivalent of G* for an exponential participation function
227      Hstar = 100.0   ,  & !!: thickness that determines the maximal thickness of ridged
228                                !!: ice
229      hparmeter = 0.75,  & !!: threshold thickness (m) for rafting / ridging
230      Craft = 5.0     ,  & !!: coefficient for smoothness of the hyperbolic tangent in rafting
231      ridge_por = 0.0 ,  & !!: initial porosity of ridges (0.3 regular value)
232      sal_max_ridge = 15.0, & !!: maximum ridged ice salinity (ppt)
233      betas    = 1.0      , & !:: coef. for partitioning of snowfall between leads and sea ice
234      kappa_i  = 1.0      , & !!: coefficient for the extinction of radiation
235                                !!: Grenfell et al. (2006) (m-1)
236      nconv_i_thd = 50    , & !!: maximal number of iterations for heat diffusion
237      maxer_i_thd = 1.0e-4    !!: maximal tolerated error (C) for heat diffusion
238
239   INTEGER , PUBLIC ::   & !!: ** ice-mechanical redistribution namelist (namiceitdme)
240      ridge_scheme_swi = 0, & !!: scheme used for ice ridging
241      raftswi          = 1, & !!: rafting of ice or not                       
242      partfun_swi      = 1, & !!: participation function Thorndike et al. JGR75 (0)
243                                !!: or Lipscomb et al. JGR07 (1)
244      transfun_swi     = 0, & !!: transfer function of Hibler, MWR80 (0)
245                                !!: or Lipscomb et al., 2007 (1)
246      brinstren_swi    = 0    !!: use brine volume to diminish ice strength
247
248   REAL(wp), PUBLIC ::   &  !:
249      usecc2          ,  &  !:  = 1.0 / ( ecc * ecc )
250      rhoco           ,  &  !: = rau0 * cw
251      sangvg, cangvg  ,  &  !: sin and cos of the turning angle for ocean stress
252      pstarh                !: pstar / 2.0
253
254   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::  &  !:
255      u_oce, v_oce    ,  &  !: surface ocean velocity used in ice dynamics
256      ahiu , ahiv     ,  &  !: hor. diffusivity coeff. at ocean U- and V-points (m2/s)
257      pahu , pahv     ,  &  !: ice hor. eddy diffusivity coef. at ocean U- and V-points
258      ust2s, hicol    ,  &  !: friction velocity, ice collection thickness accreted in leads
259      strength        ,  &  !: ice strength
260      strp1, strp2    ,  &  !: strength at previous time steps
261      stress1_i       ,  &  !: first stress tensor element
262      stress2_i       ,  &  !: second stress tensor element
263      stress12_i      ,  &  !: diagonal stress tensor element
264      delta_i         ,  &  !: Delta factor for the ice rheology (see Flato and Hibler 95) [s-1] -> limrhg.F90
265      divu_i          ,  &  !: Divergence of the velocity field [s-1] -> limrhg.F90
266      shear_i               !: Shear of the velocity field [s-1] -> limrhg.F90
267
268   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &  !:
269      firic  ,   &  !: IR flux over the ice (only used for outputs)
270      fcsic  ,   &  !: Sensible heat flux over the ice (only used for outputs)
271      fleic  ,   &  !: Latent heat flux over the ice (only used for outputs)
272      qlatic ,   &  !: latent flux
273      rdvosif,   &  !: Variation of volume at surface (only used for outputs)
274      rdvobif,   &  !: Variation of ice volume at the bottom ice (only used for outputs)
275      fdvolif,   &  !: Total variation of ice volume (only used for outputs)
276      rdvonif,   &  !: Lateral Variation of ice volume (only used for outputs)
277      sist   ,   &  !: Average Sea-Ice Surface Temperature (Kelvin)
278      icethi ,   &  !: total ice thickness (for all categories) (only used for outputs)
279      t_bo   ,   &  !: Sea-Ice bottom temperature (Kelvin)     
280      hicifp ,   &  !: Ice production/melting
281                                !obsolete... can be removed
282      frld   ,   &  !: Leads fraction = 1-a/totalarea REFERS TO LEAD FRACTION everywhere
283                                !: except in the OUTPUTS!!!!
284      pfrld  ,   &  !: Leads fraction at previous time 
285      phicif ,   &  !: Old ice thickness
286      fbif   ,   &  !: Heat flux at the ice base
287      rdm_snw,   &  !: Variation of snow mass over 1 time step           [Kg/m2]
288      rdq_snw,   &  !: heat content associated to rdm_snw                [J/m2]
289      rdm_ice,   &  !: Variation of ice  mass over 1 time step           [Kg/m2]
290      rdq_ice,   &  !: heat content associated to rdm_ice                [J/m2]
291      qldif  ,   &  !: heat balance of the lead (or of the open ocean)
292      qcmif  ,   &  !: Energy needed to bring the ocean surface layer until its freezing
293      fdtcn  ,   &  !: net downward heat flux from the ice to the ocean
294      qdtcn  ,   &  !: energy from the ice to the ocean
295      fstric ,   &  !: transmitted solar radiation under ice
296      fscmbq ,   &  !: associated with lead chipotage with solar flux
297      ffltbif,   &  !: Array linked with the max heat contained in brine pockets (?)
298      fsbbq  ,   &  !: Also linked with the solar flux below the ice (?)
299      qfvbq  ,   &  !: Array used to store energy in case of toral lateral ablation (?)
300      dmgwi  ,   &  !: Variation of the mass of snow ice
301      fsalt_res, &  !: Residual salt flux due to correction of ice thickness
302      fsbri  ,   &  !: Salt flux due to brine rejection
303      fsalt_rpo, &  !: Salt flux associated with porous ridged ice formation
304      fheat_rpo, &  !: Heat flux associated with porous ridged ice formation
305      fhbri  ,   &  !: heat flux due to brine rejection
306      fmmec  ,   &  !: Mass flux due to snow loss during compression
307      fseqv  ,   &  !: Equivalent salt flux due to ice growth/melt
308      fheat_res, &  !: Residual heat flux due to correction of ice thickness
309      fhmec         !: Heat flux due to snow loss during compression
310
311   ! temporary arrays for dummy version of the code
312   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &  !:
313      dh_i_surf2D, dh_i_bott2D, fstbif, fsup2D, focea2D, q_s
314
315   INTEGER, PUBLIC, DIMENSION(jpi, jpj, jpl) ::          &   !::
316      patho_case ! number of the pathological case (if any, of course)
317
318   !!--------------------------------------------------------------------------
319   !! * Ice global state variables
320   !!--------------------------------------------------------------------------
321   !! Variables defined for each ice category
322   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpl)        ::   &  !:
323      ht_i   ,   &  !: Ice thickness (m)
324      a_i    ,   &  !: Ice fractional areas (concentration)
325      v_i    ,   &  !: Ice volume per unit area (m)
326      v_s    ,   &  !: Snow volume per unit area(m)
327      ht_s   ,   &  !: Snow thickness (m)
328      t_su   ,   &  !: Sea-Ice Surface Temperature (K)
329      sm_i   ,   &  !: Sea-Ice Bulk salinity (ppt)
330      smv_i  ,   &  !: Sea-Ice Bulk salinity times volume per area (ppt.m)
331                                !: this is an extensive variable that has to be transported
332      o_i    ,   &  !: Sea-Ice Age (days)
333      ov_i   ,   &  !: Sea-Ice Age times volume per area (days.m)
334      oa_i          !: Sea-Ice Age times ice area (days)
335
336   !! Variables summed over all categories, or associated to
337   !! all the ice in a single grid cell
338   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &  !:
339      u_ice, v_ice,   &  !: two components of the ice velocity (m/s)
340      tio_u, tio_v,   &  !: two components of the ice-ocean stress (N/m2)
341      vt_i        ,   &  !: ice total volume per unit area (m)
342      vt_s        ,   &  !: snow total volume per unit area (m)
343      at_i        ,   &  !: ice total fractional area (ice concentration)
344      ato_i       ,   &  !: total open water fractional area (1-at_i)
345      et_i        ,   &  !: total ice heat content
346      et_s        ,   &  !: total snow heat content
347      ot_i        ,   &  !: mean age over all categories
348      tm_i        ,   &  !: mean ice temperature over all categories
349      bv_i        ,   &  !: brine volume averaged over all categories
350      smt_i              !: mean sea ice salinity averaged over all categories
351
352   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpm) ::   &  !:
353      at_i_typ    ,   &  !: total area contained in each ice type
354      vt_i_typ           !: total volume contained in each ice type
355
356   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,nlay_s,jpl) :: & !:
357      t_s,            &  !: Snow temperatures (K)
358      e_s
359
360   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpl) ::   &  !: ! go to trash
361      e_i_cat
362
363   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jkmax,jpl) :: & !:
364      t_i,            &  !: Ice temperatures     [ Kelvins     ]
365      e_i,            &  !: Ice thermal contents [ Joules*10^9 ]
366      s_i                !: Ice salinities
367
368   !!--------------------------------------------------------------------------
369   !! * Moments for advection
370   !!--------------------------------------------------------------------------
371   REAL(wp), PUBLIC, DIMENSION(jpi,jpj)     ::   &  !:
372      sxopw, syopw, sxxopw, syyopw, sxyopw          !: open water in sea ice
373
374   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpl) ::   &  !:
375      sxice, syice, sxxice, syyice, sxyice,      &  !: ice thickness moments for advection
376      sxsn,  sysn,  sxxsn,  syysn,  sxysn,       &  !: snow thickness
377      sxa,   sya,   sxxa,   syya,   sxya,        &  !: lead fraction
378      sxc0,  syc0,  sxxc0,  syyc0,  sxyc0,       &  !: snow thermal content
379      sxsal, sysal, sxxsal, syysal, sxysal,      &  !: ice salinity
380      sxage, syage, sxxage, syyage, sxyage          !: ice age
381
382   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jkmax,jpl) ::   &  !:
383      sxe ,  sye ,  sxxe ,  syye ,  sxye            !: ice layers heat content
384
385   !!--------------------------------------------------------------------------
386   !! * Old values of global variables
387   !!--------------------------------------------------------------------------
388   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpl) ::   &  !:
389      old_v_s, old_v_i,                          &  !: snow and ice volumes
390      old_a_i, old_smv_i, old_oa_i
391   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,nlay_s,jpl) ::   &  !:
392      old_e_s                                       !: snow heat content
393   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jkmax,jpl) ::   &  !:
394      old_e_i                          !: ice temperatures
395   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &  !: ice velocity (gv6 and gv7)
396      old_u_ice, old_v_ice
397
398   !!--------------------------------------------------------------------------
399   !! * Increment of global variables
400   !!--------------------------------------------------------------------------
401   ! thd refers to changes induced by thermodynamics
402   ! trp   ''         ''     ''       advection (transport of ice)
403   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpl) ::   &  !:
404      d_a_i_thd  , d_a_i_trp ,                   &  !: icefractions                 
405      d_v_s_thd  , d_v_s_trp,                    &  !: snow volume
406      d_v_i_thd  , d_v_i_trp,                    &  !: ice  volume
407      d_smv_i_thd, d_smv_i_trp,                  &     
408      d_sm_i_fl  , d_sm_i_gd ,                   &
409      d_sm_i_se  , d_sm_i_si , d_sm_i_la ,       &
410      d_oa_i_thd , d_oa_i_trp, s_i_newice
411
412   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,nlay_s,jpl) ::  &  !:
413      d_e_s_thd, d_e_s_trp
414
415   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jkmax,jpl) ::   &  !:
416      d_e_i_thd, d_e_i_trp
417
418   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::       &  !: ice velocity
419      d_u_ice_dyn, d_v_ice_dyn
420
421   !!--------------------------------------------------------------------------
422   !! * Ice thickness distribution variables
423   !!--------------------------------------------------------------------------
424   ! REMOVE
425   INTEGER, PUBLIC, DIMENSION(jpl)                ::   &  !:
426      ice_types      !: Vector making the connection between types and categories
427
428   INTEGER, PUBLIC, DIMENSION(jpm,2)              ::   &  !:
429      ice_cat_bounds !: Matrix containing the integer upper and
430   !: lower boundaries of ice thickness categories
431
432   ! REMOVE
433   INTEGER, PUBLIC, DIMENSION(jpm)                ::   &  !:
434      ice_ncat_types !: Vector containing the number of thickness categories in each ice type
435
436   REAL(wp), PUBLIC, DIMENSION(0:jpl)             ::   &  !:
437      hi_max          !: Boundary of ice thickness categories in thickness space
438
439   REAL(wp), PUBLIC, DIMENSION(jpl)               ::   &  !:
440      hi_mean         !: Mean ice thickness in catgories
441
442   ! REMOVE
443   REAL(wp), PUBLIC, DIMENSION(0:jpl,jpm)         ::   &  !:
444      hi_max_typ     !: Boundary of ice thickness categories
445   !:in thickness space (same but specific for each ice type)
446
447   !!--------------------------------------------------------------------------
448   !! * Ice Run
449   !!--------------------------------------------------------------------------
450   !! Namelist namicerun read in iceini
451   CHARACTER(len=32)     , PUBLIC ::   cn_icerst_in  = "restart_ice_in"   !: suffix of ice restart name (input)
452   CHARACTER(len=32)     , PUBLIC ::   cn_icerst_out = "restart_ice"      !: suffix of ice restart name (output)
453   LOGICAL               , PUBLIC ::   ln_limdyn     = .TRUE.             !: flag for ice dynamics (T) or not (F)
454   LOGICAL               , PUBLIC ::   ln_nicep      = .TRUE.             !: flag for sea-ice points output (T) or not (F)
455   REAL(wp)              , PUBLIC ::   hsndif        = 0.e0               !: computation of temp. in snow (0) or not (9999)
456   REAL(wp)              , PUBLIC ::   hicdif        = 0.e0               !: computation of temp. in ice (0) or not (9999)
457   REAL(wp)              , PUBLIC ::   cai           = 1.40e-3            !: atmospheric drag over sea ice
458   REAL(wp)              , PUBLIC ::   cao           = 1.00e-3            !: atmospheric drag over ocean
459   REAL(wp), DIMENSION(2), PUBLIC ::   acrit  = (/ 1.e-06 , 1.e-06 /)     !: minimum fraction for leads in
460   !                                                                      !: north and south hemisphere
461   !!--------------------------------------------------------------------------
462   !! * Ice diagnostics
463   !!--------------------------------------------------------------------------
464   !! Check if everything down here is necessary
465   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &  !: volume of ice formed in the leads
466      v_newice
467   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpl) ::   &  !: thermodynamic growth rates
468      dv_dt_thd,  &
469      izero, fstroc, fhbricat
470   REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   & 
471      diag_sni_gr,                           & ! snow ice growth
472      diag_lat_gr,                           & ! lateral ice growth
473      diag_bot_gr,                           & ! bottom ice growth
474      diag_dyn_gr,                           & ! dynamical ice growth
475      diag_bot_me,                           & ! vertical bottom melt
476      diag_sur_me                              ! vertical surface melt
477   INTEGER , PUBLIC ::   jiindx, jjindx        !: indexes of the debugging point
478
479#else
480   !!----------------------------------------------------------------------
481   !!   Default option         Empty module            NO LIM sea-ice model
482   !!----------------------------------------------------------------------
483#endif
484
485   !!----------------------------------------------------------------------
486   !! NEMO/LIM 3.0, UCL-LOCEAN-IPSL (2010)
487   !! $Id$
488   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)
489   !!======================================================================
490END MODULE ice
Note: See TracBrowser for help on using the repository browser.