Skip to content

Commit 2e1a62c

Browse files
Merge pull request #1021 from SciML/ChrisRackauckas-patch-2
Better deprecation message for nout and nbatch
2 parents 1ce5c21 + 0141108 commit 2e1a62c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problems/integral_problems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ end
7979
function IntegralProblem{iip}(
8080
f, args...; nout = nothing, batch = nothing, kwargs...) where {iip}
8181
if nout !== nothing || batch !== nothing
82-
@warn "`nout` and `batch` keywords are deprecated in favor of inplace `IntegralFunction`s or `BatchIntegralFunction`s. See the updated Integrals.jl documentation for details."
82+
@warn "`nout` and `batch` keywords are deprecated in favor of inplace `IntegralFunction`s or `BatchIntegralFunction`s. Instead of using `nout` to define sizes, the new interface requires giving an `integrand_prototype` which is a vector of the form to write to. For example, define an `IntegralFunction` where `integrand_prototype = zero(nout)` (or appropriate vector type), or for batched `integrand_prototype = zero(nout, nbatch)`. See the updated Integrals.jl documentation for details."
8383
end
8484

8585
g = if iip

0 commit comments

Comments
 (0)