Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TorkelE committed Jul 11, 2024
1 parent 6a69670 commit 1d84df8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/spatial_reaction_systems/lattice_jump_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ function JumpProcesses.JumpProblem(lrs::LatticeReactionSystem, dprob, aggregator

# Creates and returns a spatial JumpProblem (masked lattices are not supported by these).
spatial_system = has_masked_lattice(lrs) ? get_lattice_graph(lrs) : lattice(lrs)
println(JumpProblem(non_spat_dprob, aggregator, sma_jumps;
hopping_constants, spatial_system, name, kwargs...).prob.u0)
return JumpProblem(non_spat_dprob, aggregator, sma_jumps;
hopping_constants, spatial_system, name, kwargs...)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ lat_getu(osol, :X1, lrs; t = 0.0:10.0) # Returns the value of X1 at times 0.0, 1
"""
function lat_getu(sol::ODESolution, sp, lrs::LatticeReactionSystem; t = nothing)
sp_idx, sp_tot = get_sp_idxs(sp, lrs)
lat_getu(sol, extract_lattice(lattice), t, sp_idx, sp_tot)
lat_getu(sol, extract_lattice(lrs), t, sp_idx, sp_tot)
end

# Function which handles the input in the case where `t` is `nothing` (i.e. return `sp`s value
Expand Down

0 comments on commit 1d84df8

Please sign in to comment.