Skip to content

Commit

Permalink
Fixed Issue #54 (added plots again for two examples; runtests.jl work…
Browse files Browse the repository at this point in the history
…s with ModiaMath version 0.2.4).
  • Loading branch information
MartinOtter committed Oct 6, 2018
1 parent e282456 commit 0ec2bd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/LinearSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ result = checkSimulation(MySISOABCD, 10, "x", 0.5000001198147023, logTranslation
end

result = checkSimulation(MyMIMOABCD, 10, "x", 0.004778288940817275, storeEliminated=false) # storeEliminated=false needed. Investigate
# plot(result, "x", heading="MyMIMOABCD with generic switch", figure=14)
plot(result, "x", heading="MyMIMOABCD with generic switch", figure=14)

end
8 changes: 4 additions & 4 deletions test/models/TestSpatialDiscretization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const n = 5
end

result = simulate(SpatialDiscretization, 1)
# plot(result, "u", figure=1)
plot(result, "u", figure=1)



Expand All @@ -32,7 +32,7 @@ splice(uodd, ueven) = [if isodd(i); uodd[div(i,2)+1] else ueven[div(i,2)] end fo
end

result = simulate(SpatialDiscretization2, 1, logTranslation=true, storeEliminated=false)
# plot(result, "ueven", figure=2)
plot(result, "ueven", figure=2)


n = 100
Expand Down Expand Up @@ -64,7 +64,7 @@ end
end

@time result = simulate(SpatialDiscretization4, 1, logTranslation=true, storeEliminated=false)
# plot(result, "ueven", figure=4)
plot(result, "ueven", figure=4)


maskEven(n) = [if isodd(i); 0 else 1 end for i in 1:n]
Expand All @@ -77,6 +77,6 @@ maskEven(n) = [if isodd(i); 0 else 1 end for i in 1:n]
end

@time result = simulate(SpatialDiscretization5, 1, logTranslation=true, storeEliminated=false, removeSingularities=false)
# plot(result, "u", figure=5)
plot(result, "u", figure=5)

end

0 comments on commit 0ec2bd4

Please sign in to comment.