Skip to content

Commit 276aef3

Browse files
fix: use time_dependent_init instead of is_time_dependent(sys) where applicable
1 parent 175b9cd commit 276aef3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/systems/problem_utils.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ function maybe_build_initialization_problem(
10801080
end
10811081
initializeprob = remake(initializeprob; p = initp)
10821082

1083-
get_initial_unknowns = if is_time_dependent(sys)
1083+
get_initial_unknowns = if time_dependent_init
10841084
GetUpdatedU0(sys, initializeprob.f.sys, op)
10851085
else
10861086
nothing
@@ -1092,9 +1092,6 @@ function maybe_build_initialization_problem(
10921092
sys, initializeprob.f.sys; u0_constructor, p_constructor),
10931093
get_initial_unknowns, SetInitialUnknowns(sys))
10941094

1095-
if time_dependent_init === nothing
1096-
time_dependent_init = is_time_dependent(sys)
1097-
end
10981095
if time_dependent_init
10991096
all_init_syms = Set(all_symbols(initializeprob))
11001097
solved_unknowns = filter(var -> var in all_init_syms, unknowns(sys))

0 commit comments

Comments
 (0)