From 8fe7753659d955403c15a61749f437ce50a2445f Mon Sep 17 00:00:00 2001 From: Sam Isaacson Date: Tue, 26 Mar 2024 15:18:40 -0400 Subject: [PATCH] format --- test/spatial/spatial_majump.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/spatial/spatial_majump.jl b/test/spatial/spatial_majump.jl index 12cae1d6..6afcd367 100644 --- a/test/spatial/spatial_majump.jl +++ b/test/spatial/spatial_majump.jl @@ -116,7 +116,9 @@ for spatial_jump_prob in uniform_jump_problems end # birth and death zero outside of center site -f2(u, p, t) = L * u - diagm([0.0, 0.0, death_rate, 0.0, 0.0]) * u + [0.0, 0.0, 1.0, 0.0, 0.0] +function f2(u, p, t) + L * u - diagm([0.0, 0.0, death_rate, 0.0, 0.0]) * u + [0.0, 0.0, 1.0, 0.0, 0.0] +end ode_prob = ODEProblem(f2, zeros(num_nodes), tspan) sol = solve(ode_prob, Tsit5()) @@ -142,7 +144,9 @@ for (i, d) in enumerate(diff) end # birth on left end, death on right end -f4(u, p, t) = L * u - diagm([0.0, 0.0, 0.0, 0.0, death_rate]) * u + [1.0, 0.0, 0.0, 0.0, 0.0] +function f4(u, p, t) + L * u - diagm([0.0, 0.0, 0.0, 0.0, death_rate]) * u + [1.0, 0.0, 0.0, 0.0, 0.0] +end ode_prob = ODEProblem(f4, zeros(num_nodes), tspan) sol = solve(ode_prob, Tsit5())