Skip to content

Commit a8fb6bd

Browse files
update comments
1 parent b3db7ef commit a8fb6bd

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/semidiscretization/semidiscretization.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ function semidiscretize(semi::AbstractSemidiscretization, tspan;
141141

142142
return ODEProblem{iip, specialize}(ode, u0_ode, tspan, semi)
143143
else
144-
# We could also construct an `ODEFunction` without the Jacobian here,
145-
# but we stick to the more light-weight direct in-place function `rhs!`.
144+
# We could also construct an `ODEFunction` explicitly without the Jacobian here,
145+
# but we stick to the lean direct in-place function `rhs!` and
146+
# let OrdinaryDiffEq.jl handle the rest
146147
return ODEProblem{iip, specialize}(rhs!, u0_ode, tspan, semi)
147148
end
148149
end
@@ -194,8 +195,9 @@ function semidiscretize(semi::AbstractSemidiscretization, tspan,
194195

195196
return ODEProblem{iip, specialize}(ode, u0_ode, tspan, semi)
196197
else
197-
# We could also construct an `ODEFunction` without the Jacobian here,
198-
# but we stick to the more light-weight direct in-place function `rhs!`.
198+
# We could also construct an `ODEFunction` explicitly without the Jacobian here,
199+
# but we stick to the lean direct in-place function `rhs!` and
200+
# let OrdinaryDiffEq.jl handle the rest
199201
return ODEProblem{iip, specialize}(rhs!, u0_ode, tspan, semi)
200202
end
201203
end

src/semidiscretization/semidiscretization_hyperbolic_parabolic.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ function semidiscretize(semi::SemidiscretizationHyperbolicParabolic, tspan;
314314
# (potentially) stiffer parabolic function first.
315315
return SplitODEProblem{iip}(parabolic_ode, rhs!, u0_ode, tspan, semi)
316316
else
317-
# We could also construct an `ODEFunction` without the Jacobian here,
318-
# but we stick to the more light-weight direct in-place function `rhs_parabolic!`.
317+
# We could also construct an `ODEFunction` explicitly without the Jacobian here,
318+
# but we stick to the lean direct in-place functions `rhs_parabolic!` and
319+
# let OrdinaryDiffEq.jl handle the rest
319320
return SplitODEProblem{iip}(rhs_parabolic!, rhs!, u0_ode, tspan, semi)
320321
end
321322
end
@@ -375,8 +376,9 @@ function semidiscretize(semi::SemidiscretizationHyperbolicParabolic, tspan,
375376
# (potentially) stiffer parabolic function first.
376377
return SplitODEProblem{iip}(parabolic_ode, rhs!, u0_ode, tspan, semi)
377378
else
378-
# We could also construct an `ODEFunction` without the Jacobian here,
379-
# but we stick to the more light-weight direct in-place function `rhs_parabolic!`.
379+
# We could also construct an `ODEFunction` explicitly without the Jacobian here,
380+
# but we stick to the lean direct in-place function `rhs_parabolic!` and
381+
# let OrdinaryDiffEq.jl handle the rest
380382
return SplitODEProblem{iip}(rhs_parabolic!, rhs!, u0_ode, tspan, semi)
381383
end
382384
end

0 commit comments

Comments
 (0)