Skip to content

Commit 9a09986

Browse files
author
Brad Carman
committed
fixed dt issue
1 parent 97bd975 commit 9a09986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Hydraulic/isothermal_compressible.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ end
8181
s = complete(valve_system)
8282
sys = structural_simplify(valve_system)
8383
prob = ODEProblem(sys, [], (0, 0.01))
84-
sol = solve(prob, ImplicitEuler(nlsolve = NEWTON); adaptive = false, dt,
84+
sol = solve(prob, ImplicitEuler(nlsolve = NEWTON); adaptive = false, dt = 1e-4,
8585
initializealg = NoInit())
8686

8787
# the volume should discharge to 10bar
@@ -127,7 +127,7 @@ s = complete(min_vol_system)
127127
sys = structural_simplify(min_vol_system)
128128
prob = ODEProblem(sys, [], (0, 5.0))
129129

130-
sol = solve(prob, ImplicitEuler(nlsolve = NEWTON); adaptive = false, dt,
130+
sol = solve(prob, ImplicitEuler(nlsolve = NEWTON); adaptive = false, dt = 1e-4,
131131
initializealg = NoInit())
132132

133133
# begin

0 commit comments

Comments
 (0)