From ac0adfdaa4f9762a676b3e5f8ff98f3bb167532f Mon Sep 17 00:00:00 2001 From: Alexandru Fikl <alexfikl@gmail.com> Date: Sun, 17 May 2020 20:58:00 -0500 Subject: [PATCH] add docs for is_affine flag --- meshmode/discretization/__init__.py | 6 ++++++ meshmode/mesh/__init__.py | 6 +++++- meshmode/mesh/generation.py | 1 - 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/meshmode/discretization/__init__.py b/meshmode/discretization/__init__.py index ea282587..a3847f2c 100644 --- a/meshmode/discretization/__init__.py +++ b/meshmode/discretization/__init__.py @@ -67,6 +67,12 @@ class ElementGroupBase(object): Returns an array of length :attr:`nunit_nodes` containing quadrature weights. + + .. attribute:: is_affine + + A :class:`bool` flag that is *True* if the local-to-global + parametrization of all the elements in the group is affine. Based on + :attr:`meshmode.mesh.MeshElementGroup.is_affine`. """ def __init__(self, mesh_el_group, order, node_nr_base): diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index a1009564..0af14583 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -159,7 +159,11 @@ class MeshElementGroup(Record): *Not* the ambient dimension, see :attr:`Mesh.ambient_dim` for that. - .. automethod:: is_affine + .. attribute:: is_affine + + A :class:`bool` flag that is *True* if the local-to-global + parametrization of all the elements in the group is affine. + .. automethod:: face_vertex_indices .. automethod:: vertex_unit_coordinates diff --git a/meshmode/mesh/generation.py b/meshmode/mesh/generation.py index 31221b57..92c49b7d 100644 --- a/meshmode/mesh/generation.py +++ b/meshmode/mesh/generation.py @@ -843,7 +843,6 @@ def generate_warped_rect_mesh(dim, order, n): from meshmode.mesh.processing import map_mesh return map_mesh(mesh, m) - # }}} -- GitLab