1 | MODULE thd_ice_2 |
---|
2 | #if defined key_lim2 |
---|
3 | !!====================================================================== |
---|
4 | !! *** MODULE thd_ice_2 *** |
---|
5 | !! LIM 2.0 sea-ice : Ice thermodynamics in 1D |
---|
6 | !!===================================================================== |
---|
7 | !! History : |
---|
8 | !! 2.0 ! 02-11 (C. Ethe) F90: Free form and module |
---|
9 | !!---------------------------------------------------------------------- |
---|
10 | !! NEMO/LIM2 3.3 , UCL - NEMO Consortium (2010) |
---|
11 | !! $Id$ |
---|
12 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
13 | !!---------------------------------------------------------------------- |
---|
14 | USE par_ice_2 |
---|
15 | USE ice_2 |
---|
16 | |
---|
17 | IMPLICIT NONE |
---|
18 | PRIVATE |
---|
19 | |
---|
20 | PUBLIC thd_ice_alloc_2 ! Routine called by nemogcm.F90 |
---|
21 | |
---|
22 | !! * Share Module variables |
---|
23 | REAL(wp) , PUBLIC :: & !!! ** ice-thermo namelist (namicethd) ** |
---|
24 | hmelt , & !: maximum melting at the bottom |
---|
25 | hicmin , & !: ice th. corr. to max. ener. in brine pocket |
---|
26 | hiclim , & !: minimum ice thickness |
---|
27 | amax , & !: maximum lead fraction |
---|
28 | swiqst , & !: energy stored in brine pocket (1) or not (0) |
---|
29 | sbeta , & !: numerical scheme for diffusion in ice |
---|
30 | parlat , & !: percent. of energy used for lateral ablation |
---|
31 | hakspl , & !: slope of distr. for Hakkinen-Mellro's lat. melt |
---|
32 | hibspl , & !: slope of distribution for Hibler's lat. melt |
---|
33 | exld , & !: exponent for leads-closure rate |
---|
34 | hakdif , & !: coefficient for diffusions of ice and snow |
---|
35 | thth , & !: thick. for comp. of eq. thermal conduct |
---|
36 | hnzst , & !: thick. of the surf. layer in temp. comp. |
---|
37 | parsub , & !: switch for snow sublimation or not |
---|
38 | alphs !: coef. for snow density when snow-ice formation |
---|
39 | |
---|
40 | REAL(wp), PUBLIC, DIMENSION(2) :: & !: |
---|
41 | hiccrit !: ice th. for lateral accretion in the NH (SH) (m) |
---|
42 | |
---|
43 | REAL(wp) , PUBLIC :: & !: |
---|
44 | uscomi, & !: inverse of minimum lead fraction |
---|
45 | cnscg !: ratio rcpsn/rcpic |
---|
46 | |
---|
47 | INTEGER , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: & !: |
---|
48 | npb , & !: number of points where computations has to be done |
---|
49 | npac !: correspondance between the points |
---|
50 | |
---|
51 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:) :: & !: |
---|
52 | qldif_1d , & !: corresponding to the 2D var qldif |
---|
53 | qcmif_1d , & !: corresponding to the 2D var qcmif |
---|
54 | thcm_1d , & !: " " thcm |
---|
55 | fstbif_1d , & !: " " fstric |
---|
56 | fltbif_1d , & !: " " ffltbif |
---|
57 | fstbif_daymean_1d, & !: " " fstric_daymean |
---|
58 | fscbq_1d , & !: " " fscmcbq |
---|
59 | qsr_ice_1d , & !: " " qsr_ice |
---|
60 | qsr_ice_mean_1d , & !: " " qsr_ice_mean |
---|
61 | fr1_i0_1d , & !: " " fr1_i0 |
---|
62 | fr2_i0_1d , & !: " " fr2_i0 |
---|
63 | qns_ice_1d , & !: " " qns_ice |
---|
64 | qfvbq_1d , & !: " " qfvbq |
---|
65 | sist_1d , & !: " " sist |
---|
66 | tfu_1d , & !: " " tfu |
---|
67 | sprecip_1d , & !: " " sprecip |
---|
68 | h_snow_1d , & !: " " h_snow |
---|
69 | h_ice_1d , & !: " " h_ice |
---|
70 | frld_1d , & !: " " frld |
---|
71 | qstbif_1d , & !: " " qstoif |
---|
72 | fbif_1d , & !: " " fbif |
---|
73 | rdm_ice_1d , & !: " " rdm_ice |
---|
74 | rdq_ice_1d , & !: " " rdq_ice |
---|
75 | rdm_snw_1d , & !: " " rdm_snw |
---|
76 | rdq_snw_1d , & !: " " rdq_snw |
---|
77 | qlbbq_1d , & !: " " qlbsbq |
---|
78 | dmgwi_1d , & !: " " dmgwi |
---|
79 | dvsbq_1d , & !: " " rdvosif |
---|
80 | rdvomif_1d , & !: " " rdvomif |
---|
81 | dvbbq_1d , & !: " " rdvobif |
---|
82 | dvlbq_1d , & !: " " rdvolif |
---|
83 | dvnbq_1d , & !: " " rdvolif |
---|
84 | dqns_ice_1d , & !: " " dqns_ice |
---|
85 | qla_ice_1d , & !: " " qla_ice |
---|
86 | dqla_ice_1d !: " " dqla_ice |
---|
87 | |
---|
88 | REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) :: & !: |
---|
89 | tbif_1d !: corresponding to the 2D var tbif |
---|
90 | |
---|
91 | !!---------------------------------------------------------------------- |
---|
92 | !! NEMO/LIM2 3.3 , UCL - NEMO Consortium (2010) |
---|
93 | !! $Id$ |
---|
94 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
95 | !!---------------------------------------------------------------------- |
---|
96 | CONTAINS |
---|
97 | |
---|
98 | INTEGER FUNCTION thd_ice_alloc_2() |
---|
99 | !!---------------------------------------------------------------------- |
---|
100 | USE lib_mpp ! MPP library |
---|
101 | INTEGER :: ierr(5) |
---|
102 | !!---------------------------------------------------------------------- |
---|
103 | ! |
---|
104 | ierr(:) = 0 |
---|
105 | ! |
---|
106 | ALLOCATE( npb(jpij), npac(jpij), & |
---|
107 | & qldif_1d(jpij), qcmif_1d(jpij), thcm_1d(jpij), & |
---|
108 | & fstbif_1d(jpij), fltbif_1d(jpij), fscbq_1d(jpij), & |
---|
109 | & qsr_ice_1d(jpij),fr1_i0_1d(jpij), fr2_i0_1d(jpij), Stat=ierr(1)) |
---|
110 | ! |
---|
111 | ALLOCATE( qns_ice_1d(jpij), qfvbq_1d(jpij), sist_1d(jpij), tfu_1d(jpij), & |
---|
112 | & sprecip_1d(jpij), h_snow_1d(jpij),h_ice_1d(jpij),frld_1d(jpij),& |
---|
113 | & qstbif_1d(jpij), fbif_1d(jpij), Stat=ierr(2)) |
---|
114 | ! |
---|
115 | ALLOCATE( rdm_ice_1d(jpij), rdq_ice_1d(jpij) , & |
---|
116 | & rdm_snw_1d(jpij), rdq_snw_1d(jpij), qlbbq_1d(jpij) , & |
---|
117 | & dmgwi_1d(jpij) , dvsbq_1d(jpij) , rdvomif_1d(jpij), & |
---|
118 | & dvbbq_1d(jpij) , dvlbq_1d(jpij) , dvnbq_1d(jpij) , & |
---|
119 | & Stat=ierr(3)) |
---|
120 | ! |
---|
121 | ALLOCATE( dqns_ice_1d(jpij) ,qla_ice_1d(jpij), dqla_ice_1d(jpij), & |
---|
122 | & tbif_1d(jpij, jplayersp1), Stat=ierr(4)) |
---|
123 | ! |
---|
124 | IF( ltrcdm2dc_ice )ALLOCATE(fstbif_daymean_1d(jpij),qsr_ice_mean_1d(jpij),Stat=ierr(5)) |
---|
125 | ! |
---|
126 | thd_ice_alloc_2 = MAXVAL(ierr) |
---|
127 | IF( thd_ice_alloc_2 /= 0 ) CALL ctl_warn('thd_ice_alloc_2: failed to allocate arrays') |
---|
128 | ! |
---|
129 | END FUNCTION thd_ice_alloc_2 |
---|
130 | |
---|
131 | #endif |
---|
132 | !!====================================================================== |
---|
133 | END MODULE thd_ice_2 |
---|