Skip to content

Commit

Permalink
add ability to create interpolation with an arbitrary shape function
Browse files Browse the repository at this point in the history
  • Loading branch information
adamslc committed Aug 29, 2024
1 parent 38b9b9f commit e0ab4b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/interpolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@ struct BSplineChargeInterpolation{S,F,IF} <: AbstractSimulationStep
interp_func,
)
end

function BSplineChargeInterpolation(
species::S,
rho::Field{T,N,NodeOffset},
interp_width,
interp_func::F,
) where {T,N,S,F}

new{S,typeof(rho),F}(species, rho, -1, interp_width, interp_func)
end
end

function step!(step::BSplineChargeInterpolation)
Expand Down

0 comments on commit e0ab4b7

Please sign in to comment.