Skip to content

Commit

Permalink
test: remove ODAEProblem test
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Oct 9, 2024
1 parent 03c3861 commit 422230b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/structural_transformation/tearing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,6 @@ infprob = ODEProblem(structural_simplify(sys), [x => 1.0], (0, 1.0), [p => 0.2])
infprob.f(du, infprob.u0, pr, tt)
@test any(isnan, du)

sol1 = solve(prob, RosShamp4(), reltol = 2e-4)
sol2 = solve(ODEProblem{false}((u, p, t) -> [-asin(u[1] - pr * t)],
[1.0],
(0, 1.0),
0.2),
Tsit5(), tstops = sol1.t, adaptive = false)
@test Array(sol1[x])Array(sol2[1, :]) atol=1e-5

@test sol1[x] == first.(sol1.u)
@test sol1[y] == first.(sol1.u)
@test sin.(sol1[z]) .+ sol1[y]pr[1] * sol1.t atol=8e-4
@test sol1[sin(z) + y]sin.(sol1[z]) .+ sol1[y] rtol=1e-12

@test sol1[y, :] == sol1[x, :]
@test (@. sin(sol1[z, :]) + sol1[y, :])pr * sol1.t atol=8e-4

# 1426
function Translational_Mass(; name, m = 1.0)
sts = @variables s(t) v(t) a(t)
Expand Down

0 comments on commit 422230b

Please sign in to comment.