full_newton Subroutine

public subroutine full_newton(fun, iters, X, ns, S, dS, dXdS, point, max_iters, F, df, dfds, tol)

Uses

  • proc~~full_newton~~UsesGraph proc~full_newton full_newton module~yaeos__auxiliar yaeos__auxiliar proc~full_newton->module~yaeos__auxiliar module~yaeos__math_linalg yaeos__math_linalg proc~full_newton->module~yaeos__math_linalg module~yaeos__constants yaeos__constants module~yaeos__auxiliar->module~yaeos__constants module~yaeos__math_linalg->module~yaeos__constants iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env

full_newton

Description

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.

Arguments

Type IntentOptional 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.


Calls

proc~~full_newton~~CallsGraph proc~full_newton full_newton proc~solve_system solve_system proc~full_newton->proc~solve_system none~dgesv dgesv proc~solve_system->none~dgesv

Called by

proc~~full_newton~~CalledByGraph proc~full_newton full_newton proc~continuation continuation proc~continuation->proc~full_newton proc~px_envelope_2ph px_envelope_2ph proc~px_envelope_2ph->proc~continuation proc~tx_envelope_2ph tx_envelope_2ph proc~tx_envelope_2ph->proc~continuation

Variables

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