@@ -5,22 +5,28 @@ abstract type LSPARKMethod <: LDAEMethod end
5
5
abstract type PSPARKMethod <: PDAEMethod end
6
6
7
7
const AbstractSPARKMethod = Union{HSPARKMethod, ISPARKMethod, LSPARKMethod, PSPARKMethod}
8
- const AbstractSPARKProblem{DT<: Number , TT<: Real } =
9
- Union{HDAEProblem{DT,TT},
8
+ const AbstractSPARKProblem{DT<: Number , TT<: Real } =
9
+ Union{HDAEProblem{DT,TT},
10
10
IDAEProblem{DT,TT},
11
11
LDAEProblem{DT,TT},
12
12
PDAEProblem{DT,TT}}
13
13
14
- Integrators. default_solver (:: AbstractSPARKMethod ) = Newton ()
15
14
Integrators. default_iguess (:: AbstractSPARKMethod ) = HermiteExtrapolation ()
15
+ Integrators. default_solver (:: AbstractSPARKMethod ) = Newton ()
16
+ Integrators. default_options (:: AbstractSPARKMethod ) = Options (
17
+ x_reltol = 8 eps (),
18
+ x_suctol = 2 eps (),
19
+ f_abstol = 8 eps (),
20
+ f_reltol = 8 eps (),
21
+ f_suctol = 2 eps (),
22
+ )
16
23
17
24
18
25
nstages (method:: AbstractSPARKMethod ) = nstages (tableau (method))
19
26
pstages (method:: AbstractSPARKMethod ) = pstages (tableau (method))
20
27
eachstage (method:: AbstractSPARKMethod ) = eachstage (tableau (method))
21
28
hasnullvector (method:: AbstractSPARKMethod ) = hasnullvector (tableau (method))
22
29
23
-
24
30
# create nonlinear solver
25
31
function initsolver (:: Newton , config:: Options , method:: AbstractSPARKMethod , caches:: CacheDict )
26
32
NewtonSolver (zero (nlsolution (caches)), zero (nlsolution (caches)); linesearch = Backtracking (), config = config)
0 commit comments