]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a test.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 Jan 2025 22:48:58 +0000 (15:48 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 27 Jan 2025 17:56:17 +0000 (10:56 -0700)
tests/grid/hyper_ball_dim2_spacedim3.cc [new file with mode: 0644]
tests/grid/hyper_ball_dim2_spacedim3.output [new file with mode: 0644]

diff --git a/tests/grid/hyper_ball_dim2_spacedim3.cc b/tests/grid/hyper_ball_dim2_spacedim3.cc
new file mode 100644 (file)
index 0000000..6725aaa
--- /dev/null
@@ -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 <deal.II/dofs/dof_handler.h>
+
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_out.h>
+#include <deal.II/grid/manifold_lib.h>
+#include <deal.II/grid/tria.h>
+
+#include "../tests.h"
+
+
+
+void
+test()
+{
+  const int dim      = 2;
+  const int spacedim = 3;
+
+  Triangulation<dim, spacedim> tria;
+  GridGenerator::hyper_ball(tria, Point<spacedim>(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 (file)
index 0000000..37e20d0
--- /dev/null
@@ -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
+
+

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.