| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(*), | intent(inout), | target | :: | ctx |
Recompute the spatial residual for the current solution state. Implementations refresh halos/BCs and fill resid interior cells. Implementations must not modify the context's dt mid-step — kernels freeze dt at entry.