@@ -518,8 +518,12 @@ Holds information on what variables to alias
518518when solving an ODE. The field `alias_u0` determines whether the initial condition
519519will be aliased when the ODE is solved.
520520"""
521- struct ODEAliases <: AbstractAliasSpecifier
521+ struct ODEAliasSpecifier <: AbstractAliasSpecifier
522+ alias_p:: Union{Bool,Nothing}
523+ alias_f:: Union{Bool,Nothing}
522524 alias_u0:: Union{Bool,Nothing}
525+ alias_du0:: Union{Bool,Nothing}
526+ alias_tstops:: Union{Bool,Nothing}
523527end
524528
525529"""
528532Creates an `ODEAliases`, with a default `alias_u0` value of `nothing`.
529533When `alias_u0` is `nothing`, the solvers default to not aliasing `u0`.
530534"""
531- function ODEAliases (;alias_u0 = nothing )
532- ODEAliases (alias_u0)
535+ function ODEAliasSpecifier (;alias_p = nothing , alias_f = nothing , alias_u0 = false , alias_du0 = false , alias_tstops = nothing , alias = nothing )
536+ if alias == true
537+ ODEAliasSpecifier (true ,true ,true ,true ,true )
538+ elseif alias == false
539+ ODEAliasSpecifier (false , false , false , false , false )
540+ elseif isnothing (alias)
541+ ODEAliasSpecifier (alias_p,alias_f,alias_u0,alias_du0,alias_tstops)
542+ end
533543end
0 commit comments