Skip to content

Commit 7090654

Browse files
committed
add parameterized type for canopy_utils_mod function arguments
1 parent 9a02bce commit 7090654

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

physics/tools/canopy_utils_mod.f

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module canopy_utils_mod
2-
2+
3+
use machine, only : kind_phys
4+
35
implicit none
46

5-
67
contains
78

89
!--------------------------------------------------------------------------
@@ -12,8 +13,8 @@ function IntegrateTrapezoid(x, y)
1213
!using the trapezoid
1314
!! approximation. Note that the mesh spacing of x does not
1415
!have to be uniform.
15-
real, intent(in) :: x(:) !! Variable x
16-
real, intent(in) :: y(size(x)) !! Function y(x)
16+
real(kind=kind_phys), intent(in) :: x(:) !! Variable x
17+
real(kind=kind_phys), intent(in) :: y(size(x)) !! Function y(x)
1718
real :: IntegrateTrapezoid !! Integral of y(x)dx
1819
! Integrate using the trapezoidal rule
1920
associate(n => size(x))

0 commit comments

Comments
 (0)