From ec531990c4fd09c54b41269e6d23048dfd44f064 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 21 Jan 2021 20:50:31 -0700 Subject: [PATCH] Move a function that is not performance-critical to the .cc file. --- include/deal.II/grid/reference_cell.h | 32 -------------------------- source/grid/reference_cell.cc | 33 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 4943f2e34d..7bf0fadc60 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -383,38 +383,6 @@ namespace ReferenceCell - /** - * Convert the given reference cell type to a string. - */ - inline std::string - Type::to_string() const - { - if (*this == Vertex) - return "Vertex"; - else if (*this == Line) - return "Line"; - else if (*this == Tri) - return "Tri"; - else if (*this == Quad) - return "Quad"; - else if (*this == Tet) - return "Tet"; - else if (*this == Pyramid) - return "Pyramid"; - else if (*this == Wedge) - return "Wedge"; - else if (*this == Hex) - return "Hex"; - else if (*this == Invalid) - return "Invalid"; - - Assert(false, ExcNotImplemented()); - - return "Invalid"; - } - - - template inline constexpr const Type & Type::get_simplex() diff --git a/source/grid/reference_cell.cc b/source/grid/reference_cell.cc index 81a1820a09..1ad89af1af 100644 --- a/source/grid/reference_cell.cc +++ b/source/grid/reference_cell.cc @@ -62,6 +62,39 @@ namespace ReferenceCell internal::make_reference_cell_from_int(static_cast(-1)); + + /** + * Convert the given reference cell type to a string. + */ + std::string + Type::to_string() const + { + if (*this == Vertex) + return "Vertex"; + else if (*this == Line) + return "Line"; + else if (*this == Tri) + return "Tri"; + else if (*this == Quad) + return "Quad"; + else if (*this == Tet) + return "Tet"; + else if (*this == Pyramid) + return "Pyramid"; + else if (*this == Wedge) + return "Wedge"; + else if (*this == Hex) + return "Hex"; + else if (*this == Invalid) + return "Invalid"; + + Assert(false, ExcNotImplemented()); + + return "Invalid"; + } + + + template void make_triangulation(const Type & reference_cell, -- 2.39.5