SICOPOLIS V3.2
 All Classes Files Functions Variables Macros
calc_temp_melt.F90
Go to the documentation of this file.
1 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 !
3 ! Subroutine : c a l c _ t e m p _ m e l t
4 !
5 !> @file
6 !!
7 !! Computation of the melting temperatures.
8 !!
9 !! @section Copyright
10 !!
11 !! Copyright 2009-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 !> Computation of the melting temperatures.
34 !<------------------------------------------------------------------------------
35 subroutine calc_temp_melt()
36 
37 use sico_types
39 use sico_vars
40 
41 implicit none
42 integer(i4b) :: i, j, kc, kt
43 real(dp) :: atm1(0:kcmax), atm2(0:ktmax)
44 
45 !-------- Term abbreviations --------
46 
47 do kc=0, kcmax
48  atm1(kc) = beta*(1.0_dp-eaz_c_quotient(kc))
49 end do
50 
51 do kt=0, ktmax
52  atm2(kt) = 1.0_dp-zeta_t(kt)
53 end do
54 
55 !-------- Compute the melting temperatures --------
56 
57 do i=0, imax
58 do j=0, jmax
59 
60  do kt=0, ktmax
61  temp_t_m(kt,j,i) = -beta*(h_c(j,i)+h_t(j,i)*atm2(kt))
62  end do
63 
64  do kc=0, kcmax
65  temp_c_m(kc,j,i) = -atm1(kc)*h_c(j,i)
66  end do
67 
68 end do
69 end do
70 
71 end subroutine calc_temp_melt
72 !
Declarations of kind types for SICOPOLIS.
Definition: sico_types.F90:35
subroutine calc_temp_melt()
Computation of the melting temperatures.
Declarations of global variables for SICOPOLIS (for the ANT domain).
Definition: sico_vars.F90:35
Declarations of global variables for SICOPOLIS.