From: Wolfgang Bangerth Date: Thu, 23 Jan 2025 22:48:58 +0000 (-0700) Subject: Add a test. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c47c99785a41593747353cf12919fa29cb6958;p=dealii.git Add a test. --- diff --git a/tests/grid/hyper_ball_dim2_spacedim3.cc b/tests/grid/hyper_ball_dim2_spacedim3.cc new file mode 100644 index 0000000000..6725aaa1f3 --- /dev/null +++ b/tests/grid/hyper_ball_dim2_spacedim3.cc @@ -0,0 +1,48 @@ +// ------------------------------------------------------------------------ +// +// SPDX-License-Identifier: LGPL-2.1-or-later +// Copyright (C) 2002 - 2018 by the deal.II authors +// +// This file is part of the deal.II library. +// +// Part of the source code is dual licensed under Apache-2.0 WITH +// LLVM-exception OR LGPL-2.1-or-later. Detailed license information +// governing the source code and code contributions can be found in +// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. +// +// ------------------------------------------------------------------------ + + + +#include + +#include +#include +#include +#include + +#include "../tests.h" + + + +void +test() +{ + const int dim = 2; + const int spacedim = 3; + + Triangulation tria; + GridGenerator::hyper_ball(tria, Point(1, 1, 1), 0.5); + tria.refine_global(1); + + GridOut grid_out; + grid_out.write_gnuplot(tria, deallog.get_file_stream()); +} + + +int +main() +{ + initlog(); + test(); +} diff --git a/tests/grid/hyper_ball_dim2_spacedim3.output b/tests/grid/hyper_ball_dim2_spacedim3.output new file mode 100644 index 0000000000..37e20d0b67 --- /dev/null +++ b/tests/grid/hyper_ball_dim2_spacedim3.output @@ -0,0 +1,141 @@ + +0.646447 0.646447 1.00000 1 0 +1.00000 0.500000 1.00000 1 0 +1.00000 0.676777 1.00000 1 0 +0.750000 0.750000 1.00000 1 0 +0.646447 0.646447 1.00000 1 0 + + +1.00000 0.500000 1.00000 1 0 +1.35355 0.646447 1.00000 1 0 +1.25000 0.750000 1.00000 1 0 +1.00000 0.676777 1.00000 1 0 +1.00000 0.500000 1.00000 1 0 + + +0.750000 0.750000 1.00000 1 0 +1.00000 0.676777 1.00000 1 0 +1.00000 0.853553 1.00000 1 0 +0.853553 0.853553 1.00000 1 0 +0.750000 0.750000 1.00000 1 0 + + +1.00000 0.676777 1.00000 1 0 +1.25000 0.750000 1.00000 1 0 +1.14645 0.853553 1.00000 1 0 +1.00000 0.853553 1.00000 1 0 +1.00000 0.676777 1.00000 1 0 + + +0.646447 0.646447 1.00000 1 0 +0.750000 0.750000 1.00000 1 0 +0.676777 1.00000 1.00000 1 0 +0.500000 1.00000 1.00000 1 0 +0.646447 0.646447 1.00000 1 0 + + +0.750000 0.750000 1.00000 1 0 +0.853553 0.853553 1.00000 1 0 +0.853553 1.00000 1.00000 1 0 +0.676777 1.00000 1.00000 1 0 +0.750000 0.750000 1.00000 1 0 + + +0.500000 1.00000 1.00000 1 0 +0.676777 1.00000 1.00000 1 0 +0.750000 1.25000 1.00000 1 0 +0.646447 1.35355 1.00000 1 0 +0.500000 1.00000 1.00000 1 0 + + +0.676777 1.00000 1.00000 1 0 +0.853553 1.00000 1.00000 1 0 +0.853553 1.14645 1.00000 1 0 +0.750000 1.25000 1.00000 1 0 +0.676777 1.00000 1.00000 1 0 + + +0.853553 0.853553 1.00000 1 0 +1.00000 0.853553 1.00000 1 0 +1.00000 1.00000 1.00000 1 0 +0.853553 1.00000 1.00000 1 0 +0.853553 0.853553 1.00000 1 0 + + +1.00000 0.853553 1.00000 1 0 +1.14645 0.853553 1.00000 1 0 +1.14645 1.00000 1.00000 1 0 +1.00000 1.00000 1.00000 1 0 +1.00000 0.853553 1.00000 1 0 + + +0.853553 1.00000 1.00000 1 0 +1.00000 1.00000 1.00000 1 0 +1.00000 1.14645 1.00000 1 0 +0.853553 1.14645 1.00000 1 0 +0.853553 1.00000 1.00000 1 0 + + +1.00000 1.00000 1.00000 1 0 +1.14645 1.00000 1.00000 1 0 +1.14645 1.14645 1.00000 1 0 +1.00000 1.14645 1.00000 1 0 +1.00000 1.00000 1.00000 1 0 + + +1.35355 0.646447 1.00000 1 0 +1.50000 1.00000 1.00000 1 0 +1.32322 1.00000 1.00000 1 0 +1.25000 0.750000 1.00000 1 0 +1.35355 0.646447 1.00000 1 0 + + +1.50000 1.00000 1.00000 1 0 +1.35355 1.35355 1.00000 1 0 +1.25000 1.25000 1.00000 1 0 +1.32322 1.00000 1.00000 1 0 +1.50000 1.00000 1.00000 1 0 + + +1.25000 0.750000 1.00000 1 0 +1.32322 1.00000 1.00000 1 0 +1.14645 1.00000 1.00000 1 0 +1.14645 0.853553 1.00000 1 0 +1.25000 0.750000 1.00000 1 0 + + +1.32322 1.00000 1.00000 1 0 +1.25000 1.25000 1.00000 1 0 +1.14645 1.14645 1.00000 1 0 +1.14645 1.00000 1.00000 1 0 +1.32322 1.00000 1.00000 1 0 + + +0.646447 1.35355 1.00000 1 0 +0.750000 1.25000 1.00000 1 0 +1.00000 1.32322 1.00000 1 0 +1.00000 1.50000 1.00000 1 0 +0.646447 1.35355 1.00000 1 0 + + +0.750000 1.25000 1.00000 1 0 +0.853553 1.14645 1.00000 1 0 +1.00000 1.14645 1.00000 1 0 +1.00000 1.32322 1.00000 1 0 +0.750000 1.25000 1.00000 1 0 + + +1.00000 1.50000 1.00000 1 0 +1.00000 1.32322 1.00000 1 0 +1.25000 1.25000 1.00000 1 0 +1.35355 1.35355 1.00000 1 0 +1.00000 1.50000 1.00000 1 0 + + +1.00000 1.32322 1.00000 1 0 +1.00000 1.14645 1.00000 1 0 +1.14645 1.14645 1.00000 1 0 +1.25000 1.25000 1.00000 1 0 +1.00000 1.32322 1.00000 1 0 + +