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 202948b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/interpolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,22 @@ 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 202948b

Please sign in to comment.