Skip to content

Commit 59e42ee

Browse files
committed
make all_dimensionless non-allocating
1 parent b99a291 commit 59e42ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/validation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ validate(term::Symbolics.SymbolicUtils.Symbolic) = safe_get_unit(term,"") !== no
197197

198198
"Throws error if units of equations are invalid."
199199
check_units(eqs...) = validate(eqs...) || throw(ValidationError("Some equations had invalid units. See warnings for details."))
200-
all_dimensionless(states) = all(map(x->safe_get_unit(x,"") in (unitless,nothing),states))
200+
all_dimensionless(states) = all(x->safe_get_unit(x,"") in (unitless,nothing),states)

0 commit comments

Comments
 (0)