SICOPOLIS V3.2
 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-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 !> Reading of physical parameters.
34 !<------------------------------------------------------------------------------
35 subroutine phys_para()
36 
37 use sico_types
39 use sico_vars
40 
41 implicit none
42 integer(i4b), parameter :: n_unit=31
43 integer(i4b) :: ios
44 integer(i4b) :: n
45 
46 open(n_unit, iostat=ios, &
47  file=inpath//'/'//trim(ch_domain_short)//'/'//phys_para_file, &
48  status='old')
49 if (ios /= 0) stop ' phys_para: Error when opening the phys_para file!'
50 
51 call read_phys_para_value(rho_i, n_unit)
52 call read_phys_para_value(rho_w, n_unit)
53 call read_phys_para_value(rho_sw, n_unit)
54 call read_phys_para_value(l, n_unit)
55 call read_phys_para_value(g, n_unit)
56 call read_phys_para_value(nue, n_unit)
57 call read_phys_para_value(beta, n_unit)
58 call read_phys_para_value(omega_max, n_unit)
59 call read_phys_para_value(rho_c, n_unit)
60 call read_phys_para_value(kappa_c, n_unit)
61 call read_phys_para_value(c_c, n_unit)
62 call read_phys_para_value(h_r, n_unit)
63 call read_phys_para_value(rho_c_r, n_unit)
64 call read_phys_para_value(kappa_r, n_unit)
65 call read_phys_para_value(rho_a, n_unit)
66 call read_phys_para_value(r_t, n_unit)
67 
68 call read_phys_para_value(r, n_unit)
69 call read_phys_para_value(a, n_unit)
70 call read_phys_para_value(b, n_unit)
71 call read_phys_para_value(phi0, n_unit)
72 call read_phys_para_value(lambda0, n_unit)
73 
74 do n=10, -190, -1
75  call read_phys_para_value(rf(n), n_unit)
76 end do
77 
78 do n=10, -190, -1
79  call read_phys_para_value(kappa(n), n_unit)
80 end do
81 
82 do n=10, -190, -1
83  call read_phys_para_value(c(n), n_unit)
84 end do
85 
86 close(n_unit, status='keep')
87 
88 end subroutine phys_para
89 !
subroutine phys_para()
Reading of physical parameters.
Definition: phys_para.F90:35
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 read_phys_para_value(para, n_unit)
Reading of a value of a physical parameter from the phys_para file.