Skip to content

Commit 9d51b72

Browse files
committed
atol of an example changed (so that it is successful with ModiaMath 0.5.0)
1 parent 760fdac commit 9d51b72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/SynchronousExamples.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ end
7373
end
7474
end
7575

76-
result = simulate(SpeedControl, 5.0, storeEliminated=false, logSimulation=false)
76+
result = simulate(SpeedControl, 5.0, storeEliminated=false, logSimulation=true)
7777
plot(result, ("v", "fobs"), heading="SpeedControl", figure=15)
7878
@test result["v"][end] == 98.03921568627446
7979

@@ -108,7 +108,7 @@ end
108108
result = simulate(SpeedControlPI, 5.0, storeEliminated=false, logSimulation=false)
109109
plot(result, ("v", "fobs"), heading="SpeedControlPI", figure=16)
110110
@show result["v"][end]
111-
@test isapprox(result["v"][end], 100.2849917097788; atol=1e-8)
111+
@test isapprox(result["v"][end], 100.2849917097788; atol=1e-3)
112112

113113
@model ControlledMassBasic begin
114114
@extends MassWithSpringDamper(k=0) # k=100

0 commit comments

Comments
 (0)