Skip to content

Commit 23044f4

Browse files
committed
Fix bug in diffusion test.
1 parent c95ef24 commit 23044f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/spatial/diffusion.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ for alg in algs
8080
spatial_system = grids[1], save_positions = (false, false)))
8181
push!(jump_problems,
8282
JumpProblem(prob, alg, majumps, hopping_constants = hop_constants,
83-
spatial_system = grids[3], save_positions = (false, false)))
83+
spatial_system = grids[end], save_positions = (false, false)))
8484
end
8585

8686
# hop rates of form L_{s,i,j}
@@ -96,7 +96,7 @@ for alg in algs
9696
spatial_system = grids[1], save_positions = (false, false)))
9797
push!(jump_problems,
9898
JumpProblem(prob, alg, majumps, hopping_constants = hop_constants,
99-
spatial_system = grids[3], save_positions = (false, false)))
99+
spatial_system = grids[end], save_positions = (false, false)))
100100
end
101101

102102
# hop rates of form D_s * L_{i,j}
@@ -113,7 +113,7 @@ for alg in algs
113113
push!(jump_problems,
114114
JumpProblem(prob, alg, majumps,
115115
hopping_constants = Pair(species_hop_constants, site_hop_constants),
116-
spatial_system = grids[3], save_positions = (false, false)))
116+
spatial_system = grids[end], save_positions = (false, false)))
117117
end
118118

119119
# hop rates of form D_{s,i} * L_{i,j}
@@ -130,7 +130,7 @@ for alg in algs
130130
push!(jump_problems,
131131
JumpProblem(prob, alg, majumps,
132132
hopping_constants = Pair(species_hop_constants, site_hop_constants),
133-
spatial_system = grids[3], save_positions = (false, false)))
133+
spatial_system = grids[end], save_positions = (false, false)))
134134
end
135135

136136
# testing

0 commit comments

Comments
 (0)