Skip to content
Snippets Groups Projects
Commit 39fed6f8 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add to docstring to fd.Diff.interpolated_access

parent 7777156a
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,11 @@ class Diff(sp.Expr): ...@@ -112,6 +112,11 @@ class Diff(sp.Expr):
return "D(%s)" % self.arg return "D(%s)" % self.arg
def interpolated_access(self, offset): def interpolated_access(self, offset):
"""Represents an interpolated access on a spatially differentiated field
Args:
offset (Tuple[sympy.Expr]): Absolute position to determine the value of the spatial derivative
"""
from pystencils.interpolation_astnodes import DiffInterpolatorAccess from pystencils.interpolation_astnodes import DiffInterpolatorAccess
assert isinstance(self.argument, Field), "Must be field to enable interpolated accesses" assert isinstance(self.argument, Field), "Must be field to enable interpolated accesses"
return DiffInterpolatorAccess(self.argument.interpolated_access(offset), self.target) return DiffInterpolatorAccess(self.argument.interpolated_access(offset), self.target)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment