Skip to content

Commit 851448e

Browse files
committed
also test DERelative backward problem
1 parent 0bf32a0 commit 851448e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/testDERelative.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ x2_val_ref = sl(getVariable(fg, :x2) |> getTimestamp |> DateTime |> datetime2uni
8686
x3_val_ref = sl(getVariable(fg, :x3) |> getTimestamp |> DateTime |> datetime2unix)
8787

8888

89+
# sanity check that the backward problem is runs through
90+
oder_.backwardProblem.u0 .= [0.049788]
91+
retcode = DifferentialEquations.solve(oder_.backwardProblem)
92+
93+
@test isapprox(1, retcode.u[end][1]; atol=1e-4)
94+
95+
8996
## one layer wrapped API test through IIFExt to DiffEq
9097

9198
f = getFactor(fg, intersect(ls(fg,:x0),ls(fg,:x1))[1] )

0 commit comments

Comments
 (0)