From: Wolfgang Bangerth Date: Fri, 22 Jan 2021 03:50:31 +0000 (-0700) Subject: Move a function that is not performance-critical to the .cc file. X-Git-Tag: v9.3.0-rc1~574^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec531990c4fd09c54b41269e6d23048dfd44f064;p=dealii.git Move a function that is not performance-critical to the .cc file. --- 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,