From 5248b3fc800517bbe5167f7028c2ccb162f98043 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 17 Jun 2020 16:03:39 -0500 Subject: [PATCH] Document ElementGroupBase.{nunit_dofs,ndofs} --- meshmode/discretization/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meshmode/discretization/__init__.py b/meshmode/discretization/__init__.py index 3358d633..a7c1b841 100644 --- a/meshmode/discretization/__init__.py +++ b/meshmode/discretization/__init__.py @@ -92,10 +92,16 @@ class ElementGroupBase(object): @property def nunit_dofs(self): + """The number of (for now: nodal) degrees of freedom associated with a + single element. + """ return self.unit_nodes.shape[-1] @property def ndofs(self): + """The total number of (for now: nodal) degrees of freedom associated with + the element group. + """ return self.nunit_dofs * self.nelements @property -- GitLab