We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a02bce commit 7090654Copy full SHA for 7090654
1 file changed
physics/tools/canopy_utils_mod.f
@@ -1,8 +1,9 @@
1
module canopy_utils_mod
2
-
+
3
+ use machine, only : kind_phys
4
5
implicit none
6
7
contains
8
9
!--------------------------------------------------------------------------
@@ -12,8 +13,8 @@ function IntegrateTrapezoid(x, y)
12
13
!using the trapezoid
14
!! approximation. Note that the mesh spacing of x does not
15
!have to be uniform.
- real, intent(in) :: x(:) !! Variable x
16
- real, intent(in) :: y(size(x)) !! Function y(x)
+ real(kind=kind_phys), intent(in) :: x(:) !! Variable x
17
+ real(kind=kind_phys), intent(in) :: y(size(x)) !! Function y(x)
18
real :: IntegrateTrapezoid !! Integral of y(x)dx
19
! Integrate using the trapezoidal rule
20
associate(n => size(x))
0 commit comments