Skip to content

Commit 91888da

Browse files
Patch basis function getting
1 parent 204d1fb commit 91888da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/problem/type.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,13 @@ function Base.getindex(p::AbstractDataDrivenProblem, i = :, j = :)
334334
end
335335

336336
function (b::Basis{<:Any, <:Any})(p::AbstractDataDrivenProblem{<:Any, <:Any, <:Any})
337-
@unpack f = b
337+
f = get_f(b)
338338
_apply_vec_function(f, get_implicit_data(p), get_oop_args(p)...)
339339
end
340340

341341
function (b::Basis{<:Any, <:Any})(res::AbstractMatrix,
342342
p::AbstractDataDrivenProblem{<:Any, <:Any, <:Any})
343-
@unpack f = b
343+
f = get_f(b)
344344
_apply_vec_function!(f, res, get_implicit_data(p), get_oop_args(p)...)
345345
end
346346

0 commit comments

Comments
 (0)