diff --git a/grudge/discretization.py b/grudge/discretization.py index 49e14efe3606ba6d29d6c8f189b3b4873b6b4e48..de06aca622c3ee9f54121c822c81656457d8ced8 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 ce0b199b8eae10688b77e91b2e08f50b4d0e48ea..916bd6673ee2d6d9c39cd2eff0e939fe369bdcbd 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()'