From 1fb01bbbba535818df9742d37d92d8439e243112 Mon Sep 17 00:00:00 2001 From: "James P. Fairbanks" Date: Mon, 26 Feb 2024 16:07:19 -0600 Subject: [PATCH] reduce runtime of brusselator_bounded.jl example --- examples/chemistry/brusselator_bounded.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chemistry/brusselator_bounded.jl b/examples/chemistry/brusselator_bounded.jl index b2cf3910..4b72fb0a 100644 --- a/examples/chemistry/brusselator_bounded.jl +++ b/examples/chemistry/brusselator_bounded.jl @@ -65,7 +65,7 @@ resolve_overloads!(Brusselator) to_graphviz(Brusselator) # TODO: Create square domain of approximately 32x32 vertices. -s = loadmesh(Rectangle_30x10()) +s = triangulated_grid(30,10,2,2) scaling_mat = Diagonal([1/maximum(x->x[1], s[:point]), 1/maximum(x->x[2], s[:point]), 1.0]) @@ -230,7 +230,7 @@ constants_and_parameters = ( R = R, F = t -> t ≥ 1.1 ? F₂ : F₁) -tₑ = 21.5e4 +tₑ = 21.5e2 @info("Precompiling Solver") prob = ODEProblem(fₘ, u₀, (0, 1e-4), constants_and_parameters)