From 1d3540bfbefc0dddb61255df47317b033d92dd4f Mon Sep 17 00:00:00 2001 From: Niki Laptop <2212719@stud.hs-mannheim.de> Date: Sat, 7 Jun 2025 13:33:07 +0200 Subject: [PATCH] enable stepping through solution with slider in makie --- scripts/run_simulation.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/run_simulation.jl b/scripts/run_simulation.jl index 274501d..bb923e3 100644 --- a/scripts/run_simulation.jl +++ b/scripts/run_simulation.jl @@ -1,10 +1,10 @@ include("../src/AnimalFurFHN.jl") # this loads the module code using .AnimalFurFHN # include optional visualizer only if needed: -# include("../src/visualization.jl") -# using .Visualization +include("../src/visualization.jl") +using .Visualization -# N = 100 +N = 256 # tspan = (0.0, 1000.0) # sol = AnimalFurFHN.run_simulation(tspan, N) @@ -26,4 +26,6 @@ end # set time to more than 1000 sol = AnimalFurFHN.run_simulationG((0.0, 10000.0), 256) -animate_gray_scott(sol, 256, var=:U) + +Visualization.step_through_solution(sol, N) +# animate_gray_scott(sol, 256, var=:U)