]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add DEAL_II_WITH_TET_MESH_SUPPORT flag 10573/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 22 Jun 2020 17:19:56 +0000 (19:19 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 24 Jun 2020 20:45:04 +0000 (22:45 +0200)
cmake/setup_cached_variables.cmake
include/deal.II/base/config.h.in
tests/tet/CMakeLists.txt [new file with mode: 0644]
tests/tet/dummy.cc [new file with mode: 0644]
tests/tet/dummy.with_tet_support=on.output [new file with mode: 0644]

index d8e6ecc33d4c4d7609405493a8b0511273c02b79..b1bb98504346b459c1ff183735f847de025113e6 100644 (file)
@@ -372,6 +372,12 @@ OPTION(DEAL_II_WITH_64BIT_INDICES
   )
 LIST(APPEND DEAL_II_FEATURES 64BIT_INDICES)
 
+OPTION(DEAL_II_WITH_TET_SUPPORT
+  "If set to ON, triangulations with triangle and tetrahedron cells are supported in addition to quadrilateral- and hexahedra-only triangulations."
+  OFF
+  )
+LIST(APPEND DEAL_II_FEATURES TET_SUPPORT)
+
 OPTION(DEAL_II_WITH_COMPLEX_VALUES
   "If set to OFF, the classes that take a number type are not explicitly instantiated for std::complex<float> and std::complex<double>. This effectively disables the support for computing with complex values. If PETSc is built with complex scalar type, this option must be ON."
   ON
index c1f1c96bd813f17de173a40ba8f0ddf6fc0ba551..db6b33f397a08c4de84a1f94ed905ecba5328d23 100644 (file)
@@ -58,6 +58,7 @@
 #cmakedefine DEAL_II_WITH_SUNDIALS
 #cmakedefine DEAL_II_WITH_SYMENGINE
 #cmakedefine DEAL_II_WITH_TASKFLOW
+#cmakedefine DEAL_II_WITH_TET_SUPPORT
 #cmakedefine DEAL_II_WITH_TBB
 #cmakedefine DEAL_II_WITH_TRILINOS
 #cmakedefine DEAL_II_WITH_UMFPACK
diff --git a/tests/tet/CMakeLists.txt b/tests/tet/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d33eafa
--- /dev/null
@@ -0,0 +1,4 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)
+INCLUDE(../setup_testsubproject.cmake)
+PROJECT(testsuite CXX)
+DEAL_II_PICKUP_TESTS()
diff --git a/tests/tet/dummy.cc b/tests/tet/dummy.cc
new file mode 100644 (file)
index 0000000..8c0ca11
--- /dev/null
@@ -0,0 +1,32 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 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.
+//
+// ---------------------------------------------------------------------
+
+
+
+// Dummy TET test.
+
+#include "../tests.h"
+
+int
+main()
+{
+  initlog();
+
+#ifdef DEAL_II_WITH_TET_SUPPORT
+  deallog << "deal.II is configured with TET support." << std::endl;
+#else
+  deallog << "deal.II is configured without TET support." << std::endl;
+#endif
+}
diff --git a/tests/tet/dummy.with_tet_support=on.output b/tests/tet/dummy.with_tet_support=on.output
new file mode 100644 (file)
index 0000000..b8b2bc8
--- /dev/null
@@ -0,0 +1,2 @@
+
+DEAL::deal.II is configured with TET support.

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.