Skip to content

Commit 6e38d68

Browse files
feat: store reltol in OverrideInit
1 parent d75e2f3 commit 6e38d68

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/SciMLBase.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,14 @@ struct CheckInit <: DAEInitializationAlgorithm end
351351
"""
352352
$(TYPEDEF)
353353
"""
354-
struct OverrideInit{T, F} <: DAEInitializationAlgorithm
355-
abstol::T
354+
struct OverrideInit{T1, T2, F} <: DAEInitializationAlgorithm
355+
abstol::T1
356+
reltol::T2
356357
nlsolve::F
357358
end
358359

359-
function OverrideInit(; abstol = 1e-10, nlsolve = nothing)
360-
OverrideInit(abstol, nlsolve)
360+
function OverrideInit(; abstol = nothing, reltol = nothing, nlsolve = nothing)
361+
OverrideInit(abstol, reltol, nlsolve)
361362
end
362363
OverrideInit(abstol) = OverrideInit(; abstol = abstol, nlsolve = nothing)
363364

0 commit comments

Comments
 (0)