Source code for fridom.framework.grid.dummy_interpolation
import fridom.framework as fr
[docs]
@fr.utils.jaxify
class DummyInterpolation(fr.grid.InterpolationModule):
r"""
Dummy interpolation, where all interpolation methods are just the identity.
"""
name = "Dummy Interpolation"
[docs]
@fr.utils.jaxjit
def interpolate(self,
f: fr.FieldVariable,
destination: fr.grid.Position) -> fr.FieldVariable:
return f