Skip to content

Commit

Permalink
reduce runtime of brusselator_bounded.jl example
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfairbanks committed Feb 26, 2024
1 parent 143bfb1 commit 1fb01bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chemistry/brusselator_bounded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1fb01bb

Please sign in to comment.