| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | X(:) | |||
| real(kind=pr), | intent(out) | :: | F(:) | |||
| real(kind=pr), | intent(out) | :: | J(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(to_solve) | :: | sub | ||||
| real(kind=pr), | intent(inout) | :: | x(:) | |||
| real(kind=pr), | intent(in) | :: | tol | |||
| integer, | intent(in) | :: | max_its | |||
| integer, | intent(out) | :: | its |
Muldimensional Newton method with simple damping.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| procedure(to_solve) | :: | sub |
Subroutine with the system of equations to solve and its Jacobian matrix |
|||
| real(kind=pr), | intent(inout) | :: | x(:) |
Vector of variables used for initialization, updated to the solution at the end |
||
| real(kind=pr), | intent(in) | :: | tol |
Absolute tolerance on the function equations |
||
| integer, | intent(in) | :: | max_its |
Maximum number of iterations |
||
| integer, | intent(out) | :: | its |
Number of iterations used |