From 22e43f64ba79cbf73c2dd4581588c98c9167b912 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 21 Oct 2018 22:57:38 -0500 Subject: [PATCH 1/3] Tweak refinement resolutions to make convergence checks more predictable on gmsh --- test/test_meshmode.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test_meshmode.py b/test/test_meshmode.py index bd775dfc..b90586ea 100644 --- a/test/test_meshmode.py +++ b/test/test_meshmode.py @@ -88,7 +88,7 @@ def test_circle_mesh(do_plot=False): FACE_RESTR_INTERIOR, ]) @pytest.mark.parametrize(("mesh_name", "dim", "mesh_pars"), [ - ("blob", 2, [1e-1, 8e-2, 5e-2]), + ("blob", 2, [8e-2, 4e-2, 2e-2]), ("warp", 2, [10, 20, 30]), ("warp", 3, [10, 20, 30]), ]) @@ -595,8 +595,7 @@ def test_sanity_single_element(ctx_factory, dim, order, visualize=False): normal_outward_check = bind(bdry_discr, sym.normal(dim) - | - (sym.nodes(dim) + 0.5*sym.ones_vec(dim)), + | (sym.nodes(dim) + 0.5*sym.ones_vec(dim)), )(queue).as_scalar() > 0 assert normal_outward_check.get().all(), normal_outward_check.get() @@ -680,7 +679,7 @@ def test_sanity_balls(ctx_factory, src_file, dim, mesh_order, from pytential import bind, sym - for h in [0.2, 0.14, 0.1]: + for h in [0.2, 0.1, 0.05]: from meshmode.mesh.io import generate_gmsh, FileSource mesh = generate_gmsh( FileSource(src_file), dim, order=mesh_order, -- GitLab From 46befc747f307406b8a9d27d03baa5467e3e07a6 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 22 Oct 2018 00:02:44 -0500 Subject: [PATCH 2/3] Boundary interpolation test: don't build full matrices for big problems --- test/test_meshmode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_meshmode.py b/test/test_meshmode.py index b90586ea..d90f1a49 100644 --- a/test/test_meshmode.py +++ b/test/test_meshmode.py @@ -155,7 +155,7 @@ def test_boundary_interpolation(ctx_factory, group_factory, boundary_tag, bdry_f = f(bdry_x) bdry_f_2 = bdry_connection(queue, vol_f) - if mesh_name == "blob" and dim == 2: + if mesh_name == "blob" and dim == 2 and mesh.nelements < 500: mat = bdry_connection.full_resample_matrix(queue).get(queue) bdry_f_2_by_mat = mat.dot(vol_f.get()) -- GitLab From 42375b38e59381ba71458af7f0b5a7ab7fbc0908 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 22 Oct 2018 00:27:13 -0500 Subject: [PATCH 3/3] Tweak blob refinment h for test_refinement_connection --- test/test_refinement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_refinement.py b/test/test_refinement.py index 8c8ceee0..8655ed77 100644 --- a/test/test_refinement.py +++ b/test/test_refinement.py @@ -163,7 +163,7 @@ def test_refinement(case_name, mesh_gen, flag_gen, num_generations): ]) @pytest.mark.parametrize(("mesh_name", "dim", "mesh_pars"), [ ("circle", 1, [20, 30, 40]), - ("blob", 2, [1e-1, 8e-2, 5e-2]), + ("blob", 2, [8e-2, 4e-2, 2e-2]), ("warp", 2, [4, 5, 6]), ("warp", 3, [4, 5, 6]), ]) -- GitLab