Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
test_params.F90
Go to the documentation of this file.
1
program
test_params
2
3
use
iso_c_binding,
only
: c_int, c_float, c_double, c_bool
4
! use constants_and_conversions, only :WHITESPACE
5
use
exceptions
6
! use fstring
7
use
fstring_list
8
! use dictionary
9
use
parameters
10
implicit none
11
12
type
(
parameters_t
) ::
params
13
real
(c_float),
allocatable
:: fvalues(:)
14
type
(
fstring_list_t
) :: slstring
15
16
17
call
params
%add_file(
"LU_lookup_NLCD.txt"
)
18
!call PARAMS%add_file("rain_adj_factors_maui.prn", sDelimiters = "WHITESPACE")
19
call
params
%add_file(
"IRRIGATION_lookup_TWO_FACTOR.txt"
)
20
call
params
%munge_file()
21
22
!call PARAM_DICT%get_values(sKey="raincoef_3", fValues=fValues)
23
24
!print *, "count: ", ubound(fValues, 1)
25
!print *, "min : ", minval(fValues)
26
!print *, "max : ", maxval(fValues)
27
!print *, "mean : ", sum(fValues)/ ubound(fValues, 1)
28
29
slstring = param_dict%grep_keys(
"REW"
)
30
call
slstring%print()
31
32
call
slstring%deallocate()
33
34
slstring = param_dict%grep_keys(
"L_"
)
35
call
slstring%print()
36
37
call
check_warnings()
38
39
40
end program
test_params
exceptions
Definition
exceptions.F90:1
fstring_list
Definition
fstring_list.F90:1
parameters
Definition
parameters.F90:1
parameters::params
type(parameters_t), public params
Definition
parameters.F90:68
fstring_list::fstring_list_t
Definition
fstring_list.F90:21
parameters::parameters_t
Definition
parameters.F90:25
test_params
program test_params
Definition
test_params.F90:1
src
test_params.F90
Generated on
for Soil Water Balance (SWB2) by
1.14.0