Skip to content

Commit

Permalink
Rename initializesys -> initializesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBerliner committed Dec 12, 2023
1 parent f2310cf commit 8415e58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ModelingToolkit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ include("systems/jumps/jumpsystem.jl")

include("systems/nonlinear/nonlinearsystem.jl")
include("systems/nonlinear/modelingtoolkitize.jl")
include("systems/nonlinear/initializesys.jl")
include("systems/nonlinear/initializesystem.jl")

include("systems/optimization/constraints_system.jl")
include("systems/optimization/optimizationsystem.jl")
Expand Down Expand Up @@ -239,7 +239,7 @@ export toexpr, get_variables
export simplify, substitute
export build_function
export modelingtoolkitize
export initializesys
export initializesystem

export @variables, @parameters, @constants, @brownian
export @named, @nonamespace, @namespace, extend, compose, complete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(TYPEDSIGNATURES)
Generate `NonlinearSystem` which initializes an ODE problem from specified initial conditions of an `ODESystem`.
"""
function initializesys(sys::ODESystem; name = nameof(sys), kwargs...)
function initializesystem(sys::ODESystem; name = nameof(sys), kwargs...)
if has_parent(sys) && (parent = get_parent(sys); parent !== nothing)
sys = parent
end
Expand Down
2 changes: 1 addition & 1 deletion test/nonlinearsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ end
sys_simple = structural_simplify(sys)

# Set up the initialization system
sys_init = initializesys(sys_simple)
sys_init = initializesystem(sys_simple)

sys_init_simple = structural_simplify(sys_init)

Expand Down

0 comments on commit 8415e58

Please sign in to comment.