Skip to content

Commit 66fc8c3

Browse files
author
Brad Carman
committed
trying allow_symbolic = true
1 parent a6520c6 commit 66fc8c3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/Hydraulic/isothermal_compressible.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ end
9393
# fig = Figure()
9494
# tm = 0:0.01:1 |> collect
9595
# ax = Axis(fig[1,1])
96-
# lines!(ax, tm, sol.(tm; idxs=sys.vol.port.p));
96+
# lines!(ax, tm, sol.(tm; idxs=sys.vol.port.p));
9797
# fig
9898
end
9999

@@ -148,11 +148,10 @@ end
148148
ODESystem(eqs, t, [], pars; name, systems, initialization_eqs)
149149
end
150150

151-
@mtkbuild sys = System()
151+
@named sys = System()
152+
sys = structural_simplify(sys; allow_symbolic = true)
152153
prob = ODEProblem(sys, [], (0, 5))
153-
@show prob.u0
154-
sol = solve(prob, Rodas5P(linsolve = OrdinaryDiffEq.OrdinaryDiffEqNonlinearSolve.LinearSolve.QRFactorization(OrdinaryDiffEq.OrdinaryDiffEqNonlinearSolve.LinearSolve.ColumnNorm())); abstol = 1e-6, reltol = 1e-9)
155-
@show sol[1]
154+
sol = solve(prob, Rodas5P(); abstol = 1e-6, reltol = 1e-9)
156155
# begin
157156
# fig = Figure()
158157

0 commit comments

Comments
 (0)