Skip to content

Commit

Permalink
make absorb steps a kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
Uziel Linares committed Mar 15, 2021
1 parent 0745277 commit 25a5cc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/validatedODEs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ end

function validated_integ2(f!, qq0, δq0::IntervalBox{N, T}, t0, tf, orderQ, orderT,
abstol, params=nothing, parse_eqs=true; maxsteps=500,
validatesteps=30, ε=1e-10, δ=1e-3) where {N, T}
validatesteps=30, ε=1e-10, δ=1e-3,
absorb_steps=3) where {N, T}
dof = N
@assert N == get_numvars()
zI = zero(Interval{T})
Expand Down Expand Up @@ -670,7 +671,7 @@ function validated_integ2(f!, qq0, δq0::IntervalBox{N, T}, t0, tf, orderQ, orde
xTMN[i] = fp_rpa(TaylorModelN(deepcopy(aux_pol), 0 .. 0, zbox, symIbox))
# temporal solution
j = 0
while (j < 3) && (mag(rem[i]) > 1.0e-10)
while (j < absorb_steps) && (mag(rem[i]) > 1.0e-10)
j += 1
xTMN[i] = absorb_remainder(xTMN[i])
rem[i] = remainder(xTMN[i])
Expand Down

0 comments on commit 25a5cc8

Please sign in to comment.