From 6e0cc72b3dee1c0cbb042979e07fcbede6176bfd Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 16 May 2022 12:51:49 -0500 Subject: [PATCH] TransfiniteInterpolationManifold: add a test --- tests/manifold/transfinite_manifold_12.cc | 44 +++++++++++++++++++ .../transfinite_manifold_12.debug.output | 2 + 2 files changed, 46 insertions(+) create mode 100644 tests/manifold/transfinite_manifold_12.cc create mode 100644 tests/manifold/transfinite_manifold_12.debug.output diff --git a/tests/manifold/transfinite_manifold_12.cc b/tests/manifold/transfinite_manifold_12.cc new file mode 100644 index 0000000000..41f0c9b8bb --- /dev/null +++ b/tests/manifold/transfinite_manifold_12.cc @@ -0,0 +1,44 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2019 - 2020 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE.md at +// the top level directory of deal.II. +// +// --------------------------------------------------------------------- + + +// This test verifies that the transfinite interpolation can be initialized +// in the codimension one case. + +#include +#include +#include + +#include + +#include "../tests.h" + +int +main() +{ + initlog(); + + using namespace dealii; + + Triangulation<2, 3> tria; + + GridGenerator::hyper_cube(tria, -1, 1); + TransfiniteInterpolationManifold<2, 3> transfinite; + transfinite.initialize(tria); + + deallog << "OK" << std::endl; + + return 0; +} diff --git a/tests/manifold/transfinite_manifold_12.debug.output b/tests/manifold/transfinite_manifold_12.debug.output new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/manifold/transfinite_manifold_12.debug.output @@ -0,0 +1,2 @@ + +DEAL::OK -- 2.39.5