Skip to content

Commit 1b22927

Browse files
committed
Format
1 parent 336b147 commit 1b22927

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/src/tutorials/initialization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ long enough you will see that `λ = 0` is required for this equation, but since
195195
`λ = 1` we end up with a set of equations that are impossible to satisfy.
196196

197197
!!! note
198-
198+
199199
If you would prefer to have an error instead of a warning in the context of non-fully
200200
determined systems, pass the keyword argument `fully_determined = true` into the
201201
problem constructor. Additionally, any warning about not being fully determined can
@@ -278,7 +278,7 @@ sol = solve(iprob)
278278
```
279279

280280
!!! note
281-
281+
282282
For more information on solving NonlinearProblems and NonlinearLeastSquaresProblems,
283283
check out the [NonlinearSolve.jl tutorials!](https://docs.sciml.ai/NonlinearSolve/stable/tutorials/getting_started/).
284284

src/utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ function promote_to_concrete(vs; tofloat = true, use_union = true)
665665
T = eltype(vs)
666666

667667
# return early if there is nothing to do
668-
Base.isconcretetype(T) && (!tofloat#= || T === float(T)=#) && return vs # TODO: disabled float(T) to restore missing errors in https://github.com/SciML/ModelingToolkit.jl/issues/2873
668+
#Base.isconcretetype(T) && (!tofloat || T === float(T)) && return vs # TODO: disabled float(T) to restore missing errors in https://github.com/SciML/ModelingToolkit.jl/issues/2873
669+
Base.isconcretetype(T) && !tofloat && return vs
669670

670671
sym_vs = filter(x -> SymbolicUtils.issym(x) || SymbolicUtils.iscall(x), vs)
671672
isempty(sym_vs) || throw_missingvars_in_sys(sym_vs)

0 commit comments

Comments
 (0)