Skip to content

Commit

Permalink
move DEFAULT_RNG def location
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Feb 20, 2022
1 parent 2a81ebe commit 36eb241
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ JumpProblem(prob,aggregator::AbstractAggregatorAlgorithm,jumps::AbstractMassActi
JumpProblem(prob,aggregator::AbstractAggregatorAlgorithm,jumps::AbstractJump...;kwargs...) = JumpProblem(prob,aggregator,JumpSet(jumps...);kwargs...)
JumpProblem(prob,jumps::JumpSet;kwargs...) = JumpProblem(prob,NullAggregator(),jumps;kwargs...)


@static if VERSION >= v"1.7.0"
const DEFAULT_RNG = Random.default_rng()
else
const DEFAULT_RNG = Xorshifts.Xoroshiro128Star(rand(UInt64))
end

function JumpProblem(prob, aggregator::AbstractAggregatorAlgorithm, jumps::JumpSet;
save_positions = typeof(prob) <: DiffEqBase.AbstractDiscreteProblem ? (false,true) : (true,true),
rng = DEFAULT_RNG, scale_rates = true, useiszero = true, spatial_system=nothing, hopping_constants=nothing, kwargs...)
Expand Down

0 comments on commit 36eb241

Please sign in to comment.