Container to hold the state variables and user-supplied callbacks for fixpnf.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | problem_type | = | -100 | ||
| logical, | public | :: | initialized | = | .false. | ||
| type(nf_state), | public | :: | state | ||||
| type(nf_config), | public | :: | config | ||||
| type(hompack_f_callbacks), | public | :: | callbacks |
This function initializes a nf_solver object for a specified problem type, user-supplied callbacks, and configuration parameters. It validates the inputs, allocates necessary state variables (deallocation included), and binds the callbacks to the solver object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nf_solver), | intent(inout) | :: | self |
Solver object. |
||
| integer, | intent(in) | :: | problem_type |
Problem type. Must be one of the following:
* |
||
| type(hompack_f_callbacks), | intent(in) | :: | callbacks |
User-supplied function and Jacobian evaluation subroutines. Required callbacks
depend on |
||
| integer, | intent(in) | :: | n |
Problem dimension, i.e., the dimension of the independent variable . |
||
| integer, | intent(in), | optional | :: | dima |
Dimension of the parameter vector for curve-tracking problems. Required if
|
|
| type(nf_config), | intent(in), | optional | :: | config |
Configuration parameters. If not provided, default values are used. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nf_solver), | intent(inout) | :: | self |
Solver object. |
||
| real(kind=dp), | intent(in) | :: | x0(:) |
Initial point for the solver. For fixed-point and zero-finding problems, this is the initial guess . For curve-tracking problems, this is the initial solution at . |
||
| real(kind=dp), | intent(in), | optional | :: | a(:) |
Parameter vector for curve-tracking problems. Required if the solver was
initialized with |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nf_solver), | intent(inout) | :: | self |
Solver object. |