From: David Wells Date: Mon, 12 May 2025 13:52:01 +0000 (-0400) Subject: convert_hypercube_to_simplex_mesh_01: generalize the test. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72be25fb2af8757d2dbdeacd492ea969d7686472;p=dealii.git convert_hypercube_to_simplex_mesh_01: generalize the test. --- diff --git a/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc b/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc index ed7e38bf25..752d6d3134 100644 --- a/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc +++ b/tests/simplex/convert_hypercube_to_simplex_mesh_01.cc @@ -48,7 +48,7 @@ create_triangulation(Triangulation &triangulation) template void -check_file(unsigned int n_refinements = 0) // for dim = spaceim +check_file(unsigned int n_divisions, unsigned int n_refinements = 0) { Triangulation in_tria, out_tria; create_triangulation(in_tria); @@ -74,7 +74,9 @@ check_file(unsigned int n_refinements = 0) // for dim = spaceim } } - GridGenerator::convert_hypercube_to_simplex_mesh(in_tria, out_tria); + GridGenerator::convert_hypercube_to_simplex_mesh(in_tria, + out_tria, + n_divisions); // copy manifolds to test global refining for (const auto i : in_tria.get_manifold_ids()) @@ -121,27 +123,27 @@ main() // dim = spacedim = 2 deallog.push( "2D: conversion triangulation with quad elements to tri elements: "); - check_file<2, 2>(); + check_file<2, 2>(8); deallog.pop(); - // TETRAHEDRAL ELEMENTS + // TRIANGULAR ELEMENTS // dim = 2, spacedim = 2 deallog.push( "2D: conversion triangulation with quad elements to tri elements: "); - check_file<2, 3>(); + check_file<2, 3>(8); deallog.pop(); // TETRAHEDRAL ELEMENTS // dim = spacedim = 3 deallog.push( "3D: conversion triangulation with tet elements to hex elements: "); - check_file<3, 3>(); + check_file<3, 3>(24); deallog.pop(); // TETRAHEDRAL ELEMENTS // dim = spacedim = 3 deallog.push( "3D: conversion triangulation with tet elements to hex elements + refinement: "); - check_file<3, 3>(1); + check_file<3, 3>(24, 1); deallog.pop(); }