]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Removed wrapping for reference cell. 11632/head
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 26 Jan 2021 11:20:04 +0000 (12:20 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 26 Jan 2021 11:28:38 +0000 (12:28 +0100)
contrib/python-bindings/source/CMakeLists.txt
contrib/python-bindings/source/export_reference_cell.cc [deleted file]
contrib/python-bindings/source/reference_cell_wrapper.cc

index e0182fb695dc9f8cd08a47820ad6e97adb86cb04..5ab9f9ec17b300fcedbb43720331498543fa1cfd 100644 (file)
@@ -38,7 +38,6 @@ SET(_src
   export_mapping.cc
   export_manifold.cc
   export_quadrature.cc
-  export_reference_cell.cc
   cell_accessor_wrapper.cc
   tria_accessor_wrapper.cc
   point_wrapper.cc
diff --git a/contrib/python-bindings/source/export_reference_cell.cc b/contrib/python-bindings/source/export_reference_cell.cc
deleted file mode 100644 (file)
index 7ad3d0f..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-// ---------------------------------------------------------------------
-//
-// Copyright (C) 2016 - 2021 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 <boost/python.hpp>
-
-#include <reference_cell_wrapper.h>
-
-DEAL_II_NAMESPACE_OPEN
-
-namespace python
-{
-  const char cell_kind_docstring[] =
-    "Return geometric type of the corresponding reference cell.               \n";
-
-
-  void
-  export_reference_cell()
-  {
-    boost::python::enum_<ReferenceCell::Type::CellKinds>("CellKinds")
-      .value("Vertex", ReferenceCell::Type::Vertex)
-      .value("Line", ReferenceCell::Type::Line)
-      .value("Tri", ReferenceCell::Type::Tri)
-      .value("Quad", ReferenceCell::Type::Quad)
-      .value("Tet", ReferenceCell::Type::Tet)
-      .value("Pyramid", ReferenceCell::Type::Pyramid)
-      .value("Wedge", ReferenceCell::Type::Wedge)
-      .value("Hex", ReferenceCell::Type::Hex)
-      .value("Invalid", ReferenceCell::Type::Invalid);
-
-    boost::python::class_<CellTypeWrapper>(
-      "CellType",
-      boost::python::init<ReferenceCell::Type::CellKinds>(
-        boost::python::args("kind")))
-      .add_property("kind", &CellTypeWrapper::cell_kind, cell_kind_docstring);
-  }
-} // namespace python
-
-DEAL_II_NAMESPACE_CLOSE
index a1f9ffafac5e04a08309e18d12c761b59327e69d..e6ecaafbb66965d5440f2bd633437b947b5ea10e 100644 (file)
@@ -35,7 +35,7 @@ namespace python
 
   CellTypeWrapper::CellTypeWrapper(const std::uint8_t &kind)
   {
-    cell_type = kind;
+    cell_type = ReferenceCell::internal::make_reference_cell_from_int(kind);
   }
 
 

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.