Calculate gradient of "u" in one dimension based on the 2nd order central differential approximation:
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| double precision, | intent(in) | :: | x(:) |
Axis point |
||
| double precision, | intent(in) | :: | u(size(x)) |
Target variable |
||
| double precision, | intent(out) | :: | dudx(size(x)) |
du/dx |
||
| double precision, | intent(in) | :: | undef |
undefined dudxue |