Skip to content

Commit 728c800

Browse files
committed
Allow to prescribe parent solver options in projection methods.
1 parent 78da45c commit 728c800

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/projections/projection.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,26 @@ function ProjectionIntegrator(
6969
projectionmethod::ProjectionMethod,
7070
solvermethod::SolverMethod,
7171
iguess::Extrapolation,
72+
parent_solveroptions::Options,
7273
parent_solvermethod::SolverMethod,
7374
parent_iguess::Extrapolation;
7475
kwargs...
7576
)
76-
subint = GeometricIntegrator(problem, parent(projectionmethod), parent_solvermethod, parent_iguess)
77-
ProjectionIntegrator(problem, projectionmethod, solvermethod, iguess, subint)
77+
subint = GeometricIntegrator(problem, parent(projectionmethod), parent_solvermethod, parent_iguess; options = parent_solveroptions)
78+
ProjectionIntegrator(problem, projectionmethod, solvermethod, iguess, subint; kwargs...)
7879
end
7980

8081
function GeometricIntegrator(
8182
problem::AbstractProblem,
8283
method::ProjectionMethod;
8384
solver = default_solver(method),
8485
initialguess = default_iguess(method),
86+
parent_options = default_options(),
8587
parent_solver = default_solver(parent(method)),
8688
parent_initialguess = default_iguess(parent(method)),
8789
kwargs...
8890
)
89-
ProjectionIntegrator(problem, method, solver, initialguess, parent_solver, parent_initialguess; kwargs...)
91+
ProjectionIntegrator(problem, method, solver, initialguess, parent_options, parent_solver, parent_initialguess; kwargs...)
9092
end
9193

9294

0 commit comments

Comments
 (0)