Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Mar 26, 2024
1 parent 29ba6da commit 8fe7753
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/spatial/spatial_majump.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand All @@ -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())

Expand Down

0 comments on commit 8fe7753

Please sign in to comment.