diff --git a/src/problems/rode_problems.jl b/src/problems/rode_problems.jl index 38ed6bc80..a0e14e8e1 100644 --- a/src/problems/rode_problems.jl +++ b/src/problems/rode_problems.jl @@ -106,6 +106,8 @@ When a keyword argument is `nothing`, the default behaviour of the solver is use * `alias_u0::Union{Bool, Nothing}`: alias the u0 array. Defaults to false . * `alias_du0::Union{Bool, Nothing}`: alias the du0 array for DAEs. Defaults to false. * `alias_tstops::Union{Bool, Nothing}`: alias the tstops array +* `alias_noise::Union{Bool,Nothing}`: alias the noise process +* `alias_jumps::Union{Bool, Nothing}`: alias jump process if wrapped in a JumpProcess * `alias::Union{Bool, Nothing}`: sets all fields of the `RODEAliasSpecifier` to `alias` """ @@ -116,15 +118,17 @@ struct RODEAliasSpecifier <: AbstractAliasSpecifier alias_u0::Union{Bool, Nothing} alias_du0::Union{Bool, Nothing} alias_tstops::Union{Bool, Nothing} + alias_noise::Union{Bool, Nothing} + alias_jumps::Union{Bool, Nothing} function RODEAliasSpecifier(; alias_p = nothing, alias_f = nothing, alias_u0 = nothing, - alias_du0 = nothing, alias_tstops = nothing, alias = nothing) + alias_du0 = nothing, alias_tstops = nothing, alias_noise = nothing, alias_jumps = nothing, alias = nothing) if alias == true - new(true, true, true, true, true) + new(true, true, true, true, true, true, true) elseif alias == false - new(false, false, false, false, false) + new(false, false, false, false, false, false, false) elseif isnothing(alias) - new(alias_p, alias_f, alias_u0, alias_du0, alias_tstops) + new(alias_p, alias_f, alias_u0, alias_du0, alias_tstops, alias_noise, alias_jumps) end end end diff --git a/src/problems/sdde_problems.jl b/src/problems/sdde_problems.jl index 2c4ff0887..f4b68489e 100644 --- a/src/problems/sdde_problems.jl +++ b/src/problems/sdde_problems.jl @@ -187,6 +187,7 @@ When a keyword argument is `nothing`, the default behaviour of the solver is use * `alias_f::Union{Bool, Nothing}` * `alias_u0::Union{Bool, Nothing}`: alias the u0 array. Defaults to false . * `alias_tstops::Union{Bool, Nothing}`: alias the tstops array +* `alias_jumps::Union{Bool, Nothing}`: alias jump process if wrapped in a JumpProcess * `alias::Union{Bool, Nothing}`: sets all fields of the `SDDEAliasSpecifier` to `alias` """ @@ -195,15 +196,16 @@ struct SDDEAliasSpecifier alias_f::Union{Bool, Nothing} alias_u0::Union{Bool, Nothing} alias_tstops::Union{Bool, Nothing} + alias_jumps::Union{Bool, Nothing} function SDDEAliasSpecifier(; alias_p = nothing, alias_f = nothing, alias_u0 = nothing, - alias_du0 = nothing, alias_tstops = nothing, alias = nothing) + alias_du0 = nothing, alias_tstops = nothing, alias_jumps = nothing, alias = nothing) if alias == true - new(true, true, true, true) + new(true, true, true, true, true) elseif alias == false - new(false, false, false, false) + new(false, false, false, false, false) elseif isnothing(alias) - new(alias_p, alias_f, alias_u0, alias_tstops) + new(alias_p, alias_f, alias_u0, alias_tstops, alias_jumps) end end end diff --git a/src/problems/sde_problems.jl b/src/problems/sde_problems.jl index 51674a2f8..b8536fa37 100644 --- a/src/problems/sde_problems.jl +++ b/src/problems/sde_problems.jl @@ -229,6 +229,7 @@ When a keyword argument is `nothing`, the default behaviour of the solver is use * `alias_f::Union{Bool, Nothing}` * `alias_u0::Union{Bool, Nothing}`: alias the u0 array. Defaults to false . * `alias_tstops::Union{Bool, Nothing}`: alias the tstops array +* `alias_jumps::Union{Bool, Nothing}`: alias jump process if wrapped in a JumpProcess * `alias::Union{Bool, Nothing}`: sets all fields of the `SDEAliasSpecifier` to `alias` """ @@ -237,15 +238,16 @@ struct SDEAliasSpecifier <: AbstractAliasSpecifier alias_f::Union{Bool, Nothing} alias_u0::Union{Bool, Nothing} alias_tstops::Union{Bool, Nothing} + alias_jumps::Union{Bool,Nothing} function SDEAliasSpecifier(; alias_p = nothing, alias_f = nothing, alias_u0 = nothing, - alias_du0 = nothing, alias_tstops = nothing, alias = nothing) + alias_du0 = nothing, alias_tstops = nothing, alias_jumps = nothing, alias = nothing) if alias == true - new(true, true, true, true) + new(true, true, true, true, true) elseif alias == false - new(false, false, false, false) + new(false, false, false, false, false) elseif isnothing(alias) - new(alias_p, alias_f, alias_u0, alias_tstops) + new(alias_p, alias_f, alias_u0, alias_tstops, alias_jumps) end end end