Skip to content
Snippets Groups Projects
Commit 3934cfd6 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Eager nodes: allow passing dd

parent 5d6b6e90
No related branches found
No related tags found
1 merge request!84WIP: Eager deriv improvements
......@@ -77,8 +77,17 @@ class EagerDGDiscretization(DGDiscretizationWithBoundaries):
return self.connection_from_dds(src, tgt)(vec)
def nodes(self):
return self._volume_discr.nodes()
def nodes(self, dd=None):
r"""Return the nodes of a discretization.
:arg dd: a :class:`~grudge.sym.DOFDesc`, or a value convertible to one.
Defaults to the base volume discretization.
:returns: an object array of :class:`~meshmode.dof_array.DOFArray`\ s
"""
if dd is None:
return self._volume_discr.nodes()
else:
return self.discr_from_dd(dd).nodes()
@memoize_method
def _bound_grad(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment