PTsolvers / Chmy.jl

Finite differences and staggered grids on CPUs and GPUs
https://ptsolvers.github.io/Chmy.jl/
MIT License
16 stars 2 forks source link

Add interpolations #16

Closed utkinis closed 6 months ago

utkinis commented 6 months ago

This PR adds functionality to interpolate between different staggered grid locations. At current stage, only weighted arithmetic and weighted harmonic interpolation rules are defined. All interpolation functionality is exposed through itp function. Shortcuts for linear and harmonic linear interpolations are provided (lerp and hlerp functions, respectively).