Correct one predicted continuation point with Newton’s method.
The correction solves at fixed specification value,
halving the Newton step until . It stops
when or
tol.
If iteration 10 is reached (for points after the first), is reset
to the previous point plus 10% of the predictor step. On failure
iters ends at max_iters + 1.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(continuation_function) | :: | fun |
Residual/Jacobian callback. |
|||
| integer, | intent(out) | :: | iters |
Newton iterations used for this point. |
||
| real(kind=pr), | intent(inout) | :: | X(:) |
Predicted vector; corrected solution on return. |
||
| integer, | intent(in) | :: | ns |
Index of the specified variable. |
||
| real(kind=pr), | intent(in) | :: | S |
Fixed specification value for this correction. |
||
| real(kind=pr), | intent(in) | :: | dS |
Step used to form the predictor. |
||
| real(kind=pr), | intent(in) | :: | dXdS(:) |
Tangent used by the predictor and recovery logic. |
||
| integer, | intent(in) | :: | point |
One-based continuation point number. |
||
| integer, | intent(in) | :: | max_iters |
Maximum Newton iterations for correction. |
||
| real(kind=pr), | intent(out) | :: | F(:) |
Residual at the corrected point. |
||
| real(kind=pr), | intent(out) | :: | df(:,:) |
Jacobian . |
||
| real(kind=pr), | intent(out) | :: | dfds(:) |
Derivative . |
||
| real(kind=pr), | intent(in) | :: | tol |
Residual (max-norm) convergence tolerance. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | X0(size(X)) | ||||
| real(kind=pr), | public | :: | dX(size(X)) | ||||
| real(kind=pr), | public | :: | solve_tol |