Skip to content

Commit 81681e1

Browse files
fixup! refactor: get System to precompile in a trivial case
1 parent bdf423e commit 81681e1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/systems/system.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,18 @@ struct System <: IntermediateDeprecationSystem
298298
check_equations(equations(continuous_events), iv)
299299
check_subsystems(systems)
300300
end
301-
# if checks == true || (checks & CheckUnits) > 0
302-
# u = __get_unit_type(unknowns, ps, iv)
303-
# if noise_eqs === nothing
304-
# check_units(u, eqs)
305-
# else
306-
# check_units(u, eqs, noise_eqs)
307-
# end
308-
# if iv !== nothing
309-
# check_units(u, jumps, iv)
310-
# end
311-
# isempty(constraints) || check_units(u, constraints)
312-
# end
301+
if checks == true || (checks & CheckUnits) > 0
302+
u = __get_unit_type(unknowns, ps, iv)
303+
if noise_eqs === nothing
304+
check_units(u, eqs)
305+
else
306+
check_units(u, eqs, noise_eqs)
307+
end
308+
if iv !== nothing
309+
check_units(u, jumps, iv)
310+
end
311+
isempty(constraints) || check_units(u, constraints)
312+
end
313313
new(tag, eqs, noise_eqs, jumps, constraints, costs,
314314
consolidate, unknowns, ps, brownians, iv,
315315
observed, parameter_dependencies, var_to_name, name, description, defaults,

0 commit comments

Comments
 (0)