SICOPOLIS V3.0
 All Classes Files Functions Variables Macros
phys_para.F90
Go to the documentation of this file.
1 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 !
3 ! Subroutine : p h y s _ p a r a
4 !
5 !> @file
6 !!
7 !! Reading of physical parameters.
8 !!
9 !! @section Copyright
10 !!
11 !! Copyright 2009-2013 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 !> Reading of physical parameters.
34 !<------------------------------------------------------------------------------
35 subroutine phys_para
36 
37 use sico_types
39 
40 implicit none
41 integer(i4b), parameter :: n_unit=31
42 integer(i4b) :: ios
43 integer(i4b) :: n
44 
45 open(n_unit, iostat=ios, &
46  file=inpath//'/emtp2sge/'//phys_para_file, &
47  status='old')
48 if (ios /= 0) stop ' phys_para: Error when opening the phys_para file!'
49 
50 call read_phys_para_value(rho, n_unit)
51 call read_phys_para_value(rho_w, n_unit)
52 call read_phys_para_value(rho_sw, n_unit)
53 call read_phys_para_value(l, n_unit)
54 call read_phys_para_value(g, n_unit)
55 call read_phys_para_value(nue, n_unit)
56 call read_phys_para_value(beta, n_unit)
57 call read_phys_para_value(delta_tm_sw, n_unit)
58 call read_phys_para_value(omega_max, n_unit)
59 call read_phys_para_value(h_r, n_unit)
60 call read_phys_para_value(rho_c_r, n_unit)
61 call read_phys_para_value(kappa_r, n_unit)
62 call read_phys_para_value(rho_a, n_unit)
63 call read_phys_para_value(time_lag, n_unit)
64 call read_phys_para_value(r_t, n_unit)
65 
66 call read_phys_para_value(r, n_unit)
67 call read_phys_para_value(a, n_unit)
68 call read_phys_para_value(b, n_unit)
69 call read_phys_para_value(phi0, n_unit)
70 call read_phys_para_value(lambda0, n_unit)
71 
72 call read_phys_para_value(s_stat_0, n_unit)
73 call read_phys_para_value(beta1_0, n_unit)
74 call read_phys_para_value(beta2_0, n_unit)
75 call read_phys_para_value(pmax_0, n_unit)
76 call read_phys_para_value(mu_0, n_unit)
77 
78 do n=10, -190, -1
79  call read_phys_para_value(rf(n), n_unit)
80 end do
81 
82 do n=10, -190, -1
83  call read_phys_para_value(kappa(n), n_unit)
84 end do
85 
86 do n=10, -190, -1
87  call read_phys_para_value(c(n), n_unit)
88 end do
89 
90 close(n_unit, status='keep')
91 
92 end subroutine phys_para
93 !