1 | MODULE iceini_2 |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE iceini *** |
---|
4 | !! Sea-ice model : LIM 2.0 Sea ice model Initialization |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 02-08 (G. Madec) F90: Free form and modules |
---|
7 | !! 2.0 ! 03-08 (C. Ethe) add ice_run |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | #if defined key_lim2 |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_lim2' : LIM 2.0 sea-ice model |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | !!---------------------------------------------------------------------- |
---|
14 | !! ice_init_2 : sea-ice model initialization |
---|
15 | !! ice_run_2 : Definition some run parameter for ice model |
---|
16 | !!---------------------------------------------------------------------- |
---|
17 | USE dom_oce |
---|
18 | USE dom_ice_2 |
---|
19 | USE ice_oce ! ice variables |
---|
20 | USE sbc_oce ! surface boundary condition: ocean |
---|
21 | USE sbc_ice ! surface boundary condition: ice |
---|
22 | USE phycst ! Define parameters for the routines |
---|
23 | USE ice_2 |
---|
24 | USE limmsh_2 |
---|
25 | USE limistate_2 |
---|
26 | USE limrst_2 |
---|
27 | USE in_out_manager |
---|
28 | |
---|
29 | IMPLICIT NONE |
---|
30 | PRIVATE |
---|
31 | |
---|
32 | PUBLIC ice_init_2 ! called by opa.F90 |
---|
33 | |
---|
34 | LOGICAL , PUBLIC :: ln_limdyn = .TRUE. !: flag for ice dynamics (T) or not (F) |
---|
35 | REAL(wp), PUBLIC :: hsndif = 0.e0 !: computation of temp. in snow (0) or not (9999) |
---|
36 | REAL(wp), PUBLIC :: hicdif = 0.e0 !: computation of temp. in ice (0) or not (9999) |
---|
37 | REAL(wp), PUBLIC, DIMENSION(2) :: acrit = (/ 1.e-06 , 1.e-06 /) !: minimum fraction for leads in |
---|
38 | ! ! north and south hemisphere |
---|
39 | !!---------------------------------------------------------------------- |
---|
40 | !! LIM 2.0, UCL-LOCEAN-IPSL (2005) |
---|
41 | !! $Id$ |
---|
42 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
43 | !!---------------------------------------------------------------------- |
---|
44 | |
---|
45 | CONTAINS |
---|
46 | |
---|
47 | SUBROUTINE ice_init_2 |
---|
48 | !!---------------------------------------------------------------------- |
---|
49 | !! *** ROUTINE ice_init_2 *** |
---|
50 | !! |
---|
51 | !! ** purpose : |
---|
52 | !!---------------------------------------------------------------------- |
---|
53 | CHARACTER(len=80) :: namelist_icename |
---|
54 | !!---------------------------------------------------------------------- |
---|
55 | ! |
---|
56 | ! Open the namelist file |
---|
57 | namelist_icename = 'namelist_ice' |
---|
58 | CALL ctlopn(numnam_ice,namelist_icename,'OLD', 'FORMATTED', 'SEQUENTIAL', & |
---|
59 | 1,numout,.FALSE.,1) |
---|
60 | CALL ice_run_2 ! read in namelist some run parameters |
---|
61 | |
---|
62 | ! Louvain la Neuve Ice model |
---|
63 | dtsd2 = nn_fsbc * rdttra(1) * 0.5 |
---|
64 | rdt_ice = nn_fsbc * rdttra(1) |
---|
65 | |
---|
66 | CALL lim_msh_2 ! ice mesh initialization |
---|
67 | |
---|
68 | ! Initial sea-ice state |
---|
69 | IF( .NOT.ln_rstart ) THEN |
---|
70 | CALL lim_istate_2 ! start from rest: sea-ice deduced from sst |
---|
71 | ELSE |
---|
72 | CALL lim_rst_read_2 ! start from a restart file |
---|
73 | ENDIF |
---|
74 | |
---|
75 | tn_ice(:,:) = sist(:,:) ! initialisation of ice temperature |
---|
76 | fr_i (:,:) = 1.0 - frld(:,:) ! initialisation of sea-ice fraction |
---|
77 | # if defined key_coupled |
---|
78 | alb_ice(:,:) = albege(:,:) ! sea-ice albedo |
---|
79 | # endif |
---|
80 | ! |
---|
81 | END SUBROUTINE ice_init_2 |
---|
82 | |
---|
83 | |
---|
84 | SUBROUTINE ice_run_2 |
---|
85 | !!------------------------------------------------------------------- |
---|
86 | !! *** ROUTINE ice_run_2 *** |
---|
87 | !! |
---|
88 | !! ** Purpose : Definition some run parameter for ice model |
---|
89 | !! |
---|
90 | !! ** Method : Read the namicerun namelist and check the parameter |
---|
91 | !! values called at the first timestep (nit000) |
---|
92 | !! |
---|
93 | !! ** input : Namelist namicerun |
---|
94 | !!------------------------------------------------------------------- |
---|
95 | NAMELIST/namicerun/ ln_limdyn, ln_limdmp, acrit, hsndif, hicdif |
---|
96 | !!------------------------------------------------------------------- |
---|
97 | ! |
---|
98 | REWIND ( numnam_ice ) ! Read Namelist namicerun |
---|
99 | READ ( numnam_ice , namicerun ) |
---|
100 | |
---|
101 | IF(lwp) THEN |
---|
102 | WRITE(numout,*) |
---|
103 | WRITE(numout,*) 'ice_run : ice share parameters for dynamics/advection/thermo of sea-ice' |
---|
104 | WRITE(numout,*) ' ~~~~~~' |
---|
105 | WRITE(numout,*) ' switch for ice dynamics (1) or not (0) ln_limdyn = ', ln_limdyn |
---|
106 | WRITE(numout,*) ' Ice damping ln_limdmp = ', ln_limdmp |
---|
107 | WRITE(numout,*) ' minimum fraction for leads in the NH (SH) acrit(1/2) = ', acrit(:) |
---|
108 | WRITE(numout,*) ' computation of temp. in snow (=0) or not (=9999) hsndif = ', hsndif |
---|
109 | WRITE(numout,*) ' computation of temp. in ice (=0) or not (=9999) hicdif = ', hicdif |
---|
110 | ENDIF |
---|
111 | ! |
---|
112 | END SUBROUTINE ice_run_2 |
---|
113 | |
---|
114 | #else |
---|
115 | !!---------------------------------------------------------------------- |
---|
116 | !! Default option : Empty module NO LIM 2.0 sea-ice model |
---|
117 | !!---------------------------------------------------------------------- |
---|
118 | CONTAINS |
---|
119 | SUBROUTINE ice_init_2 ! Empty routine |
---|
120 | END SUBROUTINE ice_init_2 |
---|
121 | #endif |
---|
122 | |
---|
123 | !!====================================================================== |
---|
124 | END MODULE iceini_2 |
---|