Skip to content

Commit

Permalink
Add another test that shows some vertex displacement.
Browse files Browse the repository at this point in the history
  • Loading branch information
drwells committed Jan 7, 2022
1 parent 6268f32 commit ab6c4cb
Show file tree
Hide file tree
Showing 2 changed files with 1,866 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/simplex/conv_hex_to_simplex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ create_triangulation(Triangulation<dim, dim> &triangulation)

template <int dim, int spacedim>
void
check_file() // for dim = spaceim
check_file(unsigned int n_refinements = 0) // for dim = spaceim
{
Triangulation<dim, spacedim> in_tria, out_tria;
create_triangulation(in_tria);
Expand Down Expand Up @@ -83,7 +83,7 @@ check_file() // for dim = spaceim
if (i != numbers::flat_manifold_id)
out_tria.set_manifold(i, in_tria.get_manifold(i));

// out_tria.refine_global(2);
out_tria.refine_global(n_refinements);

// write 2 outputs (total mesh and only surface mesh)
const auto grid_out = [](const auto &tria,
Expand Down Expand Up @@ -139,4 +139,11 @@ main()
"3D: conversion triangulation with tet elements to hex elements: ");
check_file<3, 3>();
deallog.pop();

// TETRAHEDRAL ELEMENTS
// dim = spacedim = 3
deallog.push(
"3D: conversion triangulation with tet elements to hex elements + refinement: ");
check_file<3, 3>(1);
deallog.pop();
}

0 comments on commit ab6c4cb

Please sign in to comment.