]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix grid/twisted_parallelepiped 12146/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 5 May 2021 16:16:54 +0000 (12:16 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 5 May 2021 16:18:39 +0000 (12:18 -0400)
tests/grid/twisted_parallelepiped_01.cc
tests/grid/twisted_parallelepiped_01.release.output [moved from tests/grid/twisted_parallelepiped_02.release.output with 100% similarity]
tests/grid/twisted_parallelepiped_02.cc [deleted file]

index b42c521cbd7a632c55b023f1f110d1ed87167df2..ddede3fd7f8f1417cf7b78788b07b1932b613cef 100644 (file)
@@ -63,7 +63,8 @@ check_parallelepiped(std::ostream &logfile)
 
   Point<dim> origin;
 
-  Triangulation<dim>        triangulation;
+  Triangulation<dim> triangulation(Triangulation<dim>::MeshSmoothing::none,
+                                   /*check_for_distorted_cells*/ true);
   std::vector<unsigned int> subdivisions;
 
   try
diff --git a/tests/grid/twisted_parallelepiped_02.cc b/tests/grid/twisted_parallelepiped_02.cc
deleted file mode 100644 (file)
index 89e5371..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-// ---------------------------------------------------------------------
-//
-// Copyright (C) 2016 - 2018 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.
-//
-// ---------------------------------------------------------------------
-
-
-
-#include <deal.II/base/exceptions.h>
-#include <deal.II/base/point.h>
-#include <deal.II/base/tensor.h>
-
-#include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/grid_out.h>
-#include <deal.II/grid/tria.h>
-
-#include <array>
-
-#include "../tests.h"
-
-/*
- * Verify that the correct exception (ExcGridHasInvalidCell) is thrown when
- * this function is called for invalid input.
- */
-
-template <int dim>
-void
-check_parallelepiped()
-{
-  // Data structure defining dim coordinates that make up a
-  // parallelepiped.
-  std::array<Tensor<1, dim>, dim> edges;
-
-  switch (dim)
-    {
-      case 1:
-        edges[0][0] = -0.5;
-        break;
-
-      case 2:
-        edges[0][1] = 0.5;
-        edges[1][0] = 0.5;
-        break;
-
-      case 3:
-        edges[0][0] = 1.0;
-        edges[1][1] = 1.0;
-        edges[2][2] = -1.0;
-        break;
-
-      default:
-        Assert(false, ExcInternalError());
-    }
-
-  Point<dim> origin;
-
-  Triangulation<dim>        triangulation;
-  std::vector<unsigned int> subdivisions;
-
-  try
-    {
-      GridGenerator::subdivided_parallelepiped<dim>(
-        triangulation, origin, edges, subdivisions, false);
-    }
-  catch (ExceptionBase &exc)
-    {
-      deallog.get_file_stream() << exc.get_exc_name() << std::endl;
-    }
-}
-
-int
-main()
-{
-  deal_II_exceptions::disable_abort_on_exception();
-  initlog();
-
-  check_parallelepiped<1>();
-  check_parallelepiped<2>();
-  check_parallelepiped<3>();
-  deallog.get_file_stream() << "OK" << std::endl;
-}

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.