inline function for weighted average of slopes.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | s1 | |||
real(kind=wp), | intent(in) | :: | s2 | |||
real(kind=wp), | intent(in) | :: | h1 | |||
real(kind=wp), | intent(in) | :: | h2 |
pure function dpchsd(s1,s2,h1,h2) real(wp),intent(in) :: s1, s2, h1, h2 real(wp) :: dpchsd dpchsd = (h2/(h1+h2))*s1 + (h1/(h1+h2))*s2 end function dpchsd