Skip to content

Commit 3ea2dd3

Browse files
committed
remove check_var_type
1 parent 298727a commit 3ea2dd3

File tree

5 files changed

+0
-11
lines changed

5 files changed

+0
-11
lines changed

src/systems/discrete_system/discrete_system.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ struct DiscreteSystem <: AbstractTimeDependentSystem
122122
check_independent_variables([iv])
123123
check_variables(dvs, iv)
124124
check_parameters(ps, iv)
125-
check_var_types(DiscreteSystem, dvs)
126125
end
127126
if checks == true || (checks & CheckUnits) > 0
128127
u = __get_unit_type(dvs, ps, iv)

src/systems/jumps/jumpsystem.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ struct JumpSystem{U <: ArrayPartition} <: AbstractTimeDependentSystem
147147
check_independent_variables([iv])
148148
check_variables(unknowns, iv)
149149
check_parameters(ps, iv)
150-
check_var_types(JumpSystem, unknowns)
151150
end
152151
if checks == true || (checks & CheckUnits) > 0
153152
u = __get_unit_type(unknowns, ps, iv)

src/systems/nonlinear/nonlinearsystem.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ struct NonlinearSystem <: AbstractTimeIndependentSystem
115115
tearing_state = nothing, substitutions = nothing,
116116
complete = false, index_cache = nothing, parent = nothing,
117117
isscheduled = false; checks::Union{Bool, Int} = true)
118-
if checks == true || (checks & CheckComponents) > 0
119-
check_var_types(NonlinearSystem, unknowns)
120-
end
121118
if checks == true || (checks & CheckUnits) > 0
122119
u = __get_unit_type(unknowns, ps)
123120
check_units(u, eqs)

src/systems/optimization/optimizationsystem.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ struct OptimizationSystem <: AbstractOptimizationSystem
7373
gui_metadata = nothing, complete = false, index_cache = nothing, parent = nothing,
7474
isscheduled = false;
7575
checks::Union{Bool, Int} = true)
76-
if checks == true || (checks & CheckComponents) > 0
77-
check_var_types(OptimizationSystem, unknowns)
78-
end
7976
if checks == true || (checks & CheckUnits) > 0
8077
u = __get_unit_type(unknowns, ps)
8178
unwrap(op) isa Symbolic && check_units(u, op)

src/systems/pde/pdesystem.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
102102
checks::Union{Bool, Int} = true,
103103
description = "",
104104
name)
105-
if checks == true || (checks & CheckComponents) > 0
106-
check_var_types(PDESystem, [dv(ivs...) for dv in dvs])
107-
end
108105
if checks == true || (checks & CheckUnits) > 0
109106
u = __get_unit_type(dvs, ivs, ps)
110107
check_units(u, eqs)

0 commit comments

Comments
 (0)