Skip to content

Commit f8741ac

Browse files
authored
Merge pull request #1451 from SciML/myb/param
Default allow_symbolic to true
2 parents c476e38 + 10c6228 commit f8741ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/structural_transformation/codegen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@ function build_observed_function(
453453
[],
454454
pre(Let(
455455
[
456+
assignments[is_not_prepended_assignment]
456457
collect(Iterators.flatten(solves))
457458
map(eq -> eq.lhseq.rhs, obs[1:maxidx])
458459
subs
459-
assignments[is_not_prepended_assignment]
460460
],
461461
isscalar ? ts[1] : MakeArray(ts, output_type),
462462
false

src/structural_transformation/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ end
158158
### Structural and symbolic utilities
159159
###
160160

161-
function find_eq_solvables!(state::TearingState, ieq; may_be_zero=false, allow_symbolic=false)
161+
function find_eq_solvables!(state::TearingState, ieq; may_be_zero=false, allow_symbolic=true)
162162
fullvars = state.fullvars
163163
@unpack graph, solvable_graph = state.structure
164164
eq = equations(state)[ieq]
@@ -191,7 +191,7 @@ function find_eq_solvables!(state::TearingState, ieq; may_be_zero=false, allow_s
191191
end
192192
end
193193

194-
function find_solvables!(state::TearingState; allow_symbolic=false)
194+
function find_solvables!(state::TearingState; allow_symbolic=true)
195195
@assert state.structure.solvable_graph === nothing
196196
eqs = equations(state)
197197
graph = state.structure.graph

0 commit comments

Comments
 (0)