1 | MODULE icethd_zdf |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE icethd_zdf *** |
---|
4 | !! sea-ice: vertical heat diffusion in sea ice (computation of temperatures) |
---|
5 | !!====================================================================== |
---|
6 | !! History : LIM ! 02-2003 (M. Vancoppenolle) original 1D code |
---|
7 | !! ! 06-2005 (M. Vancoppenolle) 3d version |
---|
8 | !! ! 11-2006 (X Fettweis) Vectorization by Xavier |
---|
9 | !! ! 04-2007 (M. Vancoppenolle) Energy conservation |
---|
10 | !! 4.0 ! 2011-02 (G. Madec) dynamical allocation |
---|
11 | !! - ! 2012-05 (C. Rousset) add penetration solar flux |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | #if defined key_si3 |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | !! 'key_si3' SI3 sea-ice model |
---|
16 | !!---------------------------------------------------------------------- |
---|
17 | !! ice_thd_zdf : select the appropriate routine for vertical heat diffusion calculation |
---|
18 | !! ice_thd_zdf_BL99 : |
---|
19 | !! ice_thd_zdf_init : |
---|
20 | !!---------------------------------------------------------------------- |
---|
21 | USE dom_oce ! ocean space and time domain |
---|
22 | USE phycst ! physical constants (ocean directory) |
---|
23 | USE ice ! sea-ice: variables |
---|
24 | USE icethd_zdf_BL99 ! sea-ice: vertical diffusion (Bitz and Lipscomb, 1999) |
---|
25 | ! |
---|
26 | USE in_out_manager ! I/O manager |
---|
27 | USE lib_mpp ! MPP library |
---|
28 | USE lib_fortran ! fortran utilities (glob_sum + no signed zero) |
---|
29 | |
---|
30 | IMPLICIT NONE |
---|
31 | PRIVATE |
---|
32 | |
---|
33 | PUBLIC ice_thd_zdf ! called by icethd |
---|
34 | PUBLIC ice_thd_zdf_init ! called by icestp |
---|
35 | |
---|
36 | INTEGER :: nice_zdf ! Choice of the type of vertical heat diffusion formulation |
---|
37 | ! ! associated indices: |
---|
38 | INTEGER, PARAMETER :: np_BL99 = 1 ! Bitz and Lipscomb (1999) |
---|
39 | !! INTEGER, PARAMETER :: np_XXXX = 2 |
---|
40 | |
---|
41 | !!** namelist (namthd_zdf) ** |
---|
42 | LOGICAL :: ln_zdf_BL99 ! Heat diffusion follows Bitz and Lipscomb (1999) |
---|
43 | |
---|
44 | !!---------------------------------------------------------------------- |
---|
45 | !! NEMO/ICE 4.0 , NEMO Consortium (2018) |
---|
46 | !! $Id: icethd_zdf.F90 8420 2017-08-08 12:18:46Z clem $ |
---|
47 | !! Software governed by the CeCILL licence (./LICENSE) |
---|
48 | !!---------------------------------------------------------------------- |
---|
49 | CONTAINS |
---|
50 | |
---|
51 | SUBROUTINE ice_thd_zdf |
---|
52 | !!------------------------------------------------------------------- |
---|
53 | !! *** ROUTINE ice_thd_zdf *** |
---|
54 | !! |
---|
55 | !! ** Purpose : select the appropriate routine for the computation |
---|
56 | !! of vertical diffusion |
---|
57 | !!------------------------------------------------------------------- |
---|
58 | ! |
---|
59 | SELECT CASE ( nice_zdf ) ! Choose the vertical heat diffusion solver |
---|
60 | ! |
---|
61 | ! !-------------! |
---|
62 | CASE( np_BL99 ) ! BL99 solver ! |
---|
63 | ! !-------------! |
---|
64 | SELECT CASE( nice_jules ) |
---|
65 | ! ! No Jules coupler ==> default option |
---|
66 | CASE( np_jules_OFF ) ; CALL ice_thd_zdf_BL99 ( np_jules_OFF ) |
---|
67 | ! |
---|
68 | ! ! Jules coupler is emulated => 1st call to get the needed fields (conduction...) |
---|
69 | ! 2nd call to use these fields to calculate heat diffusion |
---|
70 | CASE( np_jules_EMULE ) ; CALL ice_thd_zdf_BL99 ( np_jules_EMULE ) |
---|
71 | CALL ice_thd_zdf_BL99 ( np_jules_ACTIVE ) |
---|
72 | ! |
---|
73 | ! ! Jules coupler is active ==> Met Office default option |
---|
74 | CASE( np_jules_ACTIVE ) ; CALL ice_thd_zdf_BL99 ( np_jules_ACTIVE ) |
---|
75 | ! |
---|
76 | END SELECT |
---|
77 | ! |
---|
78 | END SELECT |
---|
79 | ! |
---|
80 | END SUBROUTINE ice_thd_zdf |
---|
81 | |
---|
82 | |
---|
83 | SUBROUTINE ice_thd_zdf_init |
---|
84 | !!----------------------------------------------------------------------- |
---|
85 | !! *** ROUTINE ice_thd_zdf_init *** |
---|
86 | !! |
---|
87 | !! ** Purpose : Physical constants and parameters associated with |
---|
88 | !! ice thermodynamics |
---|
89 | !! |
---|
90 | !! ** Method : Read the namthd_zdf namelist and check the parameters |
---|
91 | !! called at the first timestep (nit000) |
---|
92 | !! |
---|
93 | !! ** input : Namelist namthd_zdf |
---|
94 | !!------------------------------------------------------------------- |
---|
95 | INTEGER :: ios, ioptio ! Local integer |
---|
96 | !! |
---|
97 | NAMELIST/namthd_zdf/ ln_zdf_BL99, ln_cndi_U64, ln_cndi_P07, rn_cnd_s, rn_kappa_i |
---|
98 | !!------------------------------------------------------------------- |
---|
99 | ! |
---|
100 | REWIND( numnam_ice_ref ) ! Namelist namthd_zdf in reference namelist : Ice thermodynamics |
---|
101 | READ ( numnam_ice_ref, namthd_zdf, IOSTAT = ios, ERR = 901) |
---|
102 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namthd_zdf in reference namelist', lwp ) |
---|
103 | REWIND( numnam_ice_cfg ) ! Namelist namthd_zdf in configuration namelist : Ice thermodynamics |
---|
104 | READ ( numnam_ice_cfg, namthd_zdf, IOSTAT = ios, ERR = 902 ) |
---|
105 | 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namthd_zdf in configuration namelist', lwp ) |
---|
106 | IF(lwm) WRITE( numoni, namthd_zdf ) |
---|
107 | ! |
---|
108 | IF(lwp) THEN ! control print |
---|
109 | WRITE(numout,*) |
---|
110 | WRITE(numout,*) 'ice_thd_zdf_init: Ice vertical heat diffusion' |
---|
111 | WRITE(numout,*) '~~~~~~~~~~~~~~~~' |
---|
112 | WRITE(numout,*) ' Namelist namthd_zdf:' |
---|
113 | WRITE(numout,*) ' Bitz and Lipscomb (1999) formulation ln_zdf_BL99 = ', ln_zdf_BL99 |
---|
114 | WRITE(numout,*) ' thermal conductivity in the ice (Untersteiner 1964) ln_cndi_U64 = ', ln_cndi_U64 |
---|
115 | WRITE(numout,*) ' thermal conductivity in the ice (Pringle et al 2007) ln_cndi_P07 = ', ln_cndi_P07 |
---|
116 | WRITE(numout,*) ' thermal conductivity in the snow rn_cnd_s = ', rn_cnd_s |
---|
117 | WRITE(numout,*) ' extinction radiation parameter in sea ice rn_kappa_i = ', rn_kappa_i |
---|
118 | ENDIF |
---|
119 | ! |
---|
120 | IF ( ( ln_cndi_U64 .AND. ln_cndi_P07 ) .OR. ( .NOT. ln_cndi_U64 .AND. .NOT. ln_cndi_P07 ) ) THEN |
---|
121 | CALL ctl_stop( 'ice_thd_zdf_init: choose 1 and only 1 formulation for thermal conduction (ln_cndi_U64 or ln_cndi_P07)' ) |
---|
122 | ENDIF |
---|
123 | ! !== set the choice of ice vertical thermodynamic formulation ==! |
---|
124 | ioptio = 0 |
---|
125 | IF( ln_zdf_BL99 ) THEN ; ioptio = ioptio + 1 ; nice_zdf = np_BL99 ; ENDIF ! BL99 thermodynamics (linear liquidus + constant thermal properties) |
---|
126 | !! IF( ln_zdf_XXXX ) THEN ; ioptio = ioptio + 1 ; nice_zdf = np_XXXX ; ENDIF |
---|
127 | IF( ioptio /= 1 ) CALL ctl_stop( 'ice_thd_init: one and only one ice thermo option has to be defined ' ) |
---|
128 | ! |
---|
129 | END SUBROUTINE ice_thd_zdf_init |
---|
130 | |
---|
131 | #else |
---|
132 | !!---------------------------------------------------------------------- |
---|
133 | !! Default option Dummy Module No SI3 sea-ice model |
---|
134 | !!---------------------------------------------------------------------- |
---|
135 | #endif |
---|
136 | |
---|
137 | !!====================================================================== |
---|
138 | END MODULE icethd_zdf |
---|