solve_point Subroutine

private subroutine solve_point(model, z, np, beta_w, X, ns, S, dXdS, F, df, iters, max_iterations)

Type Bound

PTEnvelMP

Arguments

Type IntentOptional Attributes Name
class(ArModel), intent(in) :: model

Model to use.

real(kind=pr), intent(in) :: z(:)

Mixture global composition.

integer, intent(in) :: np

Number of main phases

real(kind=pr), intent(in) :: beta_w

Fraction of the reference (incipient) phase

real(kind=pr), intent(inout) :: X(:)

Vector of variables

integer, intent(in) :: ns

Number of specification

real(kind=pr), intent(in) :: S

Specification value

real(kind=pr), intent(in) :: dXdS(size(X))
real(kind=pr), intent(out) :: F(size(X))

Vector of functions valuated

real(kind=pr), intent(out) :: df(size(X),size(X))

Jacobian matrix

integer, intent(out) :: iters

Number of iterations to solve the current point

integer, intent(in) :: max_iterations

Maximum number of iterations to solve the point


Variables

Type Visibility Attributes Name Initial
real(kind=pr), private :: X0(size(X))
logical, private :: can_solve
real(kind=pr), private :: dX(size(X))
integer, private :: i
integer, private :: iBetas(np)
integer, private :: iP
integer, private :: iT
integer, private :: nc