From eaceca60ee42440bb7aafba830dd01376929f48a Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Mon, 29 Aug 2022 15:24:15 -0500 Subject: [PATCH] add more sectioning --- grudge/discretization.py | 5 +++++ test/test_grudge.py | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/grudge/discretization.py b/grudge/discretization.py index 49e14efe..de06aca6 100644 --- a/grudge/discretization.py +++ b/grudge/discretization.py @@ -707,6 +707,8 @@ class DiscretizationCollection: # }}} +# {{{ modal group factory + def _generate_modal_group_factory(nodal_group_factory): from meshmode.discretization.poly_element import ( ModalSimplexGroupFactory, @@ -726,4 +728,7 @@ def _generate_modal_group_factory(nodal_group_factory): f"Unknown mesh element group: {mesh_group_cls}" ) +# }}} + + # vim: foldmethod=marker diff --git a/test/test_grudge.py b/test/test_grudge.py index ce0b199b..916bd667 100644 --- a/test/test_grudge.py +++ b/test/test_grudge.py @@ -979,6 +979,8 @@ def test_bessel(actx_factory): # }}} +# {{{ test norms + @pytest.mark.parametrize("p", [2, np.inf]) def test_norm_real(actx_factory, p): actx = actx_factory() @@ -1042,6 +1044,10 @@ def test_norm_obj_array(actx_factory, p): logger.info("norm: %.5e %.5e", norm, ref_norm) assert abs(norm-ref_norm) / abs(ref_norm) < 1e-14 +# }}} + + +# {{{ empty boundaries def test_empty_boundary(actx_factory): # https://github.com/inducer/grudge/issues/54 @@ -1061,6 +1067,8 @@ def test_empty_boundary(actx_factory): assert isinstance(component, DOFArray) assert len(component) == len(dcoll.discr_from_dd(BTAG_NONE).groups) +# }}} + # You can test individual routines by typing # $ python test_grudge.py 'test_routine()' -- GitLab