Skip to content

Commit

Permalink
ins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bittens authored and Bittens committed Sep 21, 2023
1 parent 4858978 commit 10421c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/DistributedSparseGrids.jl
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,19 @@ function integrate_inplace_ops(asg::SG) where {N,CP,RT,HCP<:AbstractHierarchical
return res
end

function integrate_inplace_ops(asg::SG, res::RT, tmp::RT) where {N,CP,RT,HCP<:AbstractHierarchicalCollocationPoint{N,CP,RT}, SG<:AbstractHierarchicalSparseGrid{N,HCP}}
println("N=$N,CP=$CP,RT=$RT")
res = fill!(res,0.0)
tmp = fill(tmp,0.0)
for cpt in asg
bf = integral_basis_fun(cpt)
sw = scaling_weight(cpt)
mul!(tmp, sw, bf)
add!(res, tmp)
end
return res
end

#function integrate(asg::SG,fun::Function) where {N,CP,RT,HCP<:AbstractHierarchicalCollocationPoint{N,CP,RT}, SG<:AbstractHierarchicalSparseGrid{N,HCP}}
# println("N=$N,CP=$CP,RT=$RT")
# maxp = maxporder(asg)
Expand Down

0 comments on commit 10421c4

Please sign in to comment.