Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Nov 16, 2023
1 parent b30fc32 commit aafefc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/saving.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ end
function linearize_period(t₀, t₁, u₀, u₁, integ, caches, u_mask, dtmin)

Check warning on line 227 in src/saving.jl

View check run for this annotation

Codecov / codecov/patch

src/saving.jl#L227

Added line #L227 was not covered by tests
# Sanity check that we don't accidentally infinitely recurse
if t₁ - t₀ < dtmin
@debug("Linearization failure", t₁, t₀, string(u₀), string(u₁), string(u_mask), dtmin)
throw(ArgumentError("Linearization failed, fell below linearization subdivision threshold"))

Check warning on line 231 in src/saving.jl

View check run for this annotation

Codecov / codecov/patch

src/saving.jl#L229-L231

Added lines #L229 - L231 were not covered by tests
end

Expand Down

0 comments on commit aafefc7

Please sign in to comment.