Soil Water Balance (SWB2)
Toggle main menu visibility
Loading...
Searching...
No Matches
mass_balance__interception.F90
Go to the documentation of this file.
1
module
mass_balance__interception
2
3
use
iso_c_binding,
only
: c_short, c_int, c_float, c_double
4
implicit none
5
6
private
7
8
public
::
calculate_interception_mass_balance
9
10
contains
11
12
elemental
subroutine
calculate_interception_mass_balance
( interception_storage, &
13
actual_et_interception, &
14
interception, &
15
interception_storage_max, &
16
reference_et0 )
17
18
real
(c_float),
intent(inout)
:: interception_storage
19
real
(c_double),
intent(inout)
:: actual_et_interception
20
real
(c_float),
intent(inout)
:: interception
21
real
(c_float),
intent(in)
:: interception_storage_max
22
real
(c_double),
intent(in)
:: reference_et0
23
24
real
(c_float) :: temp_storage
25
26
temp_storage = interception_storage + interception
27
28
if
( temp_storage > interception_storage_max )
then
29
! reduce the previously calculated interception value to account for
30
! limited interception storage
31
interception = interception_storage_max - interception_storage
32
interception_storage = interception_storage_max
33
else
34
interception_storage = temp_storage
35
endif
36
37
actual_et_interception = min( reference_et0, real(interception_storage, c_double) )
38
interception_storage = real(max( 0.0_c_double, real(interception_storage, c_double) - actual_et_interception ), c_float)
39
40
end subroutine
calculate_interception_mass_balance
41
42
end module
mass_balance__interception
mass_balance__interception
Definition
mass_balance__interception.F90:1
mass_balance__interception::calculate_interception_mass_balance
elemental subroutine, public calculate_interception_mass_balance(interception_storage, actual_et_interception, interception, interception_storage_max, reference_et0)
Definition
mass_balance__interception.F90:17
src
mass_balance__interception.F90
Generated on
for Soil Water Balance (SWB2) by
1.17.0