Skip to content

Commit 640eced

Browse files
committed
fix spatial jump check
1 parent 2afd123 commit 640eced

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/problem.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ function JumpProblem(prob, aggregator::AbstractAggregatorAlgorithm, jumps::JumpS
184184
end
185185

186186
## Spatial jumps handling
187-
if spatial_system !== nothing && hopping_constants !== nothing &&
188-
!is_spatial(aggregator)
187+
if spatial_system !== nothing && hopping_constants !== nothing
189188
(num_crjs(jumps) == num_vrjs(jumps) == 0) ||
190189
error("Spatial aggregators only support MassActionJumps currently.")
191-
prob, maj = flatten(maj, prob, spatial_system, hopping_constants; kwargs...)
190+
if !is_spatial(aggregator)
191+
prob, maj = flatten(maj, prob, spatial_system, hopping_constants; kwargs...)
192+
end
192193
end
193194

194195
if is_spatial(aggregator)

0 commit comments

Comments
 (0)