SICOPOLIS V3.2
 All Classes Files Functions Variables Macros
calc_temp_const.F90
Go to the documentation of this file.
1 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 !
3 ! Subroutine : c a l c _ t e m p _ c o n s t
4 !
5 !> @file
6 !!
7 !! Isothermal mode: Setting of the temperature and age to constant values.
8 !!
9 !! @section Copyright
10 !!
11 !! Copyright 2014-2016 Ralf Greve
12 !!
13 !! @section License
14 !!
15 !! This file is part of SICOPOLIS.
16 !!
17 !! SICOPOLIS is free software: you can redistribute it and/or modify
18 !! it under the terms of the GNU General Public License as published by
19 !! the Free Software Foundation, either version 3 of the License, or
20 !! (at your option) any later version.
21 !!
22 !! SICOPOLIS is distributed in the hope that it will be useful,
23 !! but WITHOUT ANY WARRANTY; without even the implied warranty of
24 !! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 !! GNU General Public License for more details.
26 !!
27 !! You should have received a copy of the GNU General Public License
28 !! along with SICOPOLIS. If not, see <http://www.gnu.org/licenses/>.
29 !<
30 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31 
32 !-------------------------------------------------------------------------------
33 !> Isothermal mode: Setting of the temperature and age to constant values.
34 !<------------------------------------------------------------------------------
35 subroutine calc_temp_const()
36 
37 use sico_types
39 use sico_vars
40 
41 implicit none
42 
43 #if defined(TEMP_CONST)
44  if ( temp_const > -eps ) &
45  stop ' calc_temp_const: TEMP_CONST must be negative!'
46  temp_c_neu = temp_const
47  temp_r_neu = temp_const
48 #else
49  temp_c_neu = -10.0_dp ! default value -10 C
50  temp_r_neu = -10.0_dp ! default value -10 C
51 #endif
52 
53 temp_c_neu = min(temp_c_neu, temp_c_m-eps)
54  ! keep temperatures below the pressure melting point
55 
56 omega_t_neu = 0.0_dp
57 omega_c_neu = 0.0_dp
58 
59 q_tld = 0.0_dp
60 
61 #if defined(AGE_CONST)
62  age_c_neu = age_const *year_sec ! a --> s
63  age_t_neu = age_const *year_sec ! a --> s
64 #else
65  age_c_neu = 0.0_dp ! default value 0
66  age_t_neu = 0.0_dp ! default value 0
67 #endif
68 
69 n_cts_neu = -1
70 kc_cts_neu = 0
71 zm_neu = zb
72 h_c_neu = h_c
73 h_t_neu = 0.0_dp
74 
75 end subroutine calc_temp_const
76 !
Declarations of kind types for SICOPOLIS.
Definition: sico_types.F90:35
Declarations of global variables for SICOPOLIS (for the ANT domain).
Definition: sico_vars.F90:35
Declarations of global variables for SICOPOLIS.
subroutine calc_temp_const()
Isothermal mode: Setting of the temperature and age to constant values.