Skip to content

Commit

Permalink
Allow to prescribe parent solver options in projection methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Dec 3, 2024
1 parent 78da45c commit 728c800
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/projections/projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,26 @@ function ProjectionIntegrator(
projectionmethod::ProjectionMethod,
solvermethod::SolverMethod,
iguess::Extrapolation,
parent_solveroptions::Options,
parent_solvermethod::SolverMethod,
parent_iguess::Extrapolation;
kwargs...
)
subint = GeometricIntegrator(problem, parent(projectionmethod), parent_solvermethod, parent_iguess)
ProjectionIntegrator(problem, projectionmethod, solvermethod, iguess, subint)
subint = GeometricIntegrator(problem, parent(projectionmethod), parent_solvermethod, parent_iguess; options = parent_solveroptions)
ProjectionIntegrator(problem, projectionmethod, solvermethod, iguess, subint; kwargs...)
end

function GeometricIntegrator(
problem::AbstractProblem,
method::ProjectionMethod;
solver = default_solver(method),
initialguess = default_iguess(method),
parent_options = default_options(),
parent_solver = default_solver(parent(method)),
parent_initialguess = default_iguess(parent(method)),
kwargs...
)
ProjectionIntegrator(problem, method, solver, initialguess, parent_solver, parent_initialguess; kwargs...)
ProjectionIntegrator(problem, method, solver, initialguess, parent_options, parent_solver, parent_initialguess; kwargs...)
end


Expand Down

0 comments on commit 728c800

Please sign in to comment.