Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
test_params.F90
Go to the documentation of this file.
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
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
40end program test_params
type(parameters_t), public params
program test_params