There was an error while loading. Please reload this page.
1 parent 8c11bd9 commit f7e9dacCopy full SHA for f7e9dac
1 file changed
lib/BoundaryValueDiffEqFIRK/src/firk.jl
@@ -126,6 +126,11 @@ function init_nested(
126
end
127
diffcache = __cache_trait(alg.jac_alg)
128
tune_parameters = haskey(prob.kwargs, :tune_parameters)
129
+ if tune_parameters
130
+ prob.p isa SciMLBase.NullParameters &&
131
+ throw(ArgumentError("`tune_parameters` is true but `prob.p` is not set."))
132
+ end
133
+
134
constraint = (!isnothing(prob.f.inequality)) ||
135
(!isnothing(prob.f.equality)) ||
136
(!isnothing(prob.lb)) ||
0 commit comments