Skip to content

Commit

Permalink
Merge 81cdcaf into 276837b
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilin97 committed Aug 19, 2022
2 parents 276837b + 81cdcaf commit bafc9b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/spatial/diffusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ Bt = B'
analytic_solution(t) = B * diagm(ℯ .^ (t * evals)) * Bt * reshape(prob.u0, num_nodes, 1)

num_time_points = 10
Nsims = 10000
rel_tol = 0.01
Nsims = 50000
rel_tol = 0.02
times = 0.0:(tf / num_time_points):tf

algs = [NSM(), DirectCRDirect()]
Expand Down Expand Up @@ -143,7 +143,7 @@ for (j, spatial_jump_prob) in enumerate(jump_problems)
end
end

# testing non-uniform hopping rates
# testing non-uniform hopping rates. Only hopping up or left.
dims = (2, 2)
num_nodes = prod(dims)
grid = Graphs.grid(dims)
Expand All @@ -157,7 +157,7 @@ for ci in CartesianIndices(hopping_constants)
end
end
end
starting_state = 25 * ones(Int, length(u0), num_nodes)
starting_state = 100 * ones(Int, length(u0), num_nodes)
tspan = (0.0, 10.0)
prob = DiscreteProblem(starting_state, tspan, [])

Expand Down

0 comments on commit bafc9b3

Please sign in to comment.