start from the logical top and sum downward (keep dx positive since the intent is to integrate from fixed point to top) +1 since we are starting from top
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:,:,:) | :: | f | ||
| type(curvmesh), | intent(in) | :: | x | |||
| integer, | intent(in) | :: | lbnd | |||
| integer, | intent(in) | :: | ubnd |