From 07ccfe7adee4b63a5c6022e7e78c297d015489c1 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Tue, 26 Jan 2021 12:20:04 +0100 Subject: [PATCH] Removed wrapping for reference cell. --- contrib/python-bindings/source/CMakeLists.txt | 1 - .../source/export_reference_cell.cc | 50 ------------------- .../source/reference_cell_wrapper.cc | 2 +- 3 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 contrib/python-bindings/source/export_reference_cell.cc diff --git a/contrib/python-bindings/source/CMakeLists.txt b/contrib/python-bindings/source/CMakeLists.txt index e0182fb695..5ab9f9ec17 100644 --- a/contrib/python-bindings/source/CMakeLists.txt +++ b/contrib/python-bindings/source/CMakeLists.txt @@ -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 index 7ad3d0ffb8..0000000000 --- a/contrib/python-bindings/source/export_reference_cell.cc +++ /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 - -#include - -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_("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_( - "CellType", - boost::python::init( - boost::python::args("kind"))) - .add_property("kind", &CellTypeWrapper::cell_kind, cell_kind_docstring); - } -} // namespace python - -DEAL_II_NAMESPACE_CLOSE diff --git a/contrib/python-bindings/source/reference_cell_wrapper.cc b/contrib/python-bindings/source/reference_cell_wrapper.cc index a1f9ffafac..e6ecaafbb6 100644 --- a/contrib/python-bindings/source/reference_cell_wrapper.cc +++ b/contrib/python-bindings/source/reference_cell_wrapper.cc @@ -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); } -- 2.39.5