Procedure 'fcn' of this class is the parameter to fSolve subroutine.
This abstract object should be extended by user the only requirement is to overwrite abstract 'fcn' class procedure, which will be used by fSolve algorithm.
User-supplied system of equations
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(fSolve_t), | intent(in) | :: | me |
User-defined object transmitted to the solver |
||
| integer, | intent(in) | :: | n |
number of functions and variables |
||
| real(kind=dp), | intent(inout) | :: | x(n) |
result or initial point where the jacobian is evaluated |
||
| real(kind=dp), | intent(inout) | :: | fVec(n) |
the functions evaluated at 'x' |