Skip to content

Commit a13b812

Browse files
committed
test update
1 parent 102537e commit a13b812

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/spatial_modelling/lattice_reaction_systems_ODEs.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -613,18 +613,20 @@ let
613613
end
614614
end
615615

616-
# Tests with non-Int64 parameter values.
616+
# Tests with non-Float64 parameter values.
617+
# Tests for all Jacobian/sparsity combinations.
618+
# Tests for parameters with/without uniform values.
617619
let
618620
lrs = LatticeReactionSystem(SIR_system, SIR_srs_2, very_small_2d_cartesian_grid)
619621
u0 = [:S => 990.0, :I => rand_v_vals(lrs), :R => 0.0]
620622
ps_1 = [ => 0.1, => 0.01, :dS => 0.01, :dI => 0.01, :dR => 0.01]
621-
ps_2 = [ => Float32(0.1), => Float32(0.01), :dS => Float32(0.01), :dI => Float32(0.01), :dR => Float32(0.01)]
622-
ps_3 = [ => 1//10, => 0.01, :dS => 0.01, :dI => 1//100, :dR => Float32(0.01)]
623-
sol_base = solve(ODEProblem(lrs, u0, (0.0, 100.0), ps_1), Rosenbrock23(); savetat = 0.1)
623+
ps_2 = [ => 1//10, => 1//100, :dS => 1//100, :dI => 1//100, :dR => 1//100]
624+
ps_3 = [ => 1//10, => 0.01, :dS => 0.01, :dI => 1//100, :dR => 0.01]
625+
sol_base = solve(ODEProblem(lrs, u0, (0.0, 100.0), ps_1), Rosenbrock23(); saveat = 0.1)
624626
for ps in [ps_1, ps_2, ps_3]
625627
for jac in [true, false], sparse in [true, false]
626628
oprob = ODEProblem(lrs, u0, (0.0, 100.0), ps; jac, sparse)
627-
@test sol_base solve(oprob, Rosenbrock23(); savetat = 0.1)
629+
@test sol_base solve(oprob, Rosenbrock23(); saveat = 0.1)
628630
end
629631
end
630632
end

0 commit comments

Comments
 (0)