From: Daniel Arndt Date: Sun, 25 Feb 2018 17:36:40 +0000 (+0100) Subject: Provide general template function definitions in GeometryInfo X-Git-Tag: v9.0.0-rc1~363^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d938edef2b1b02498cd95447f264b4a797a3a58;p=dealii.git Provide general template function definitions in GeometryInfo --- diff --git a/include/deal.II/base/geometry_info.h b/include/deal.II/base/geometry_info.h index 9c7c05ddef..d179570167 100644 --- a/include/deal.II/base/geometry_info.h +++ b/include/deal.II/base/geometry_info.h @@ -2924,6 +2924,15 @@ GeometryInfo::child_to_cell_coordinates (const Point &/*p*/, +template +inline +bool +GeometryInfo::is_inside_unit_cell (const Point &) +{ + Assert(false, ExcNotImplemented()); + return false; +} + template <> inline bool @@ -2955,6 +2964,18 @@ GeometryInfo<3>::is_inside_unit_cell (const Point<3> &p) (p[2] >= 0.) && (p[2] <= 1.); } + + +template +inline +bool +GeometryInfo::is_inside_unit_cell (const Point &, + const double) +{ + Assert(false, ExcNotImplemented()); + return false; +} + template <> inline bool @@ -3151,6 +3172,16 @@ GeometryInfo::n_children(const RefinementCase &ref_case) } + +template +inline +unsigned int +GeometryInfo::n_subfaces(const internal::SubfaceCase &) +{ + Assert(false, ExcNotImplemented()); + return 0; +} + template <> inline unsigned int @@ -3160,8 +3191,6 @@ GeometryInfo<1>::n_subfaces(const internal::SubfaceCase<1> &) return 0; } - - template <> inline unsigned int @@ -3183,6 +3212,17 @@ GeometryInfo<3>::n_subfaces(const internal::SubfaceCase<3> &subface_case) } + +template +inline +double +GeometryInfo::subface_ratio(const internal::SubfaceCase &, + const unsigned int) +{ + Assert(false, ExcNotImplemented()); + return 0.; +} + template <> inline double @@ -3293,6 +3333,19 @@ GeometryInfo<3>::subface_ratio(const internal::SubfaceCase<3> &subface_case, +template +RefinementCase +inline +GeometryInfo::face_refinement_case(const RefinementCase &, + const unsigned int, + const bool, + const bool, + const bool) +{ + Assert (false, ExcNotImplemented()); + return RefinementCase::no_refinement; +} + template <> RefinementCase<0> inline @@ -3445,6 +3498,16 @@ GeometryInfo<3>::face_refinement_case(const RefinementCase<3> &cell_refinement_c +template +inline +RefinementCase<1> +GeometryInfo::line_refinement_case(const RefinementCase &, + const unsigned int) +{ + Assert(false, ExcNotImplemented()); + return RefinementCase<1>::no_refinement; +} + template <> inline RefinementCase<1> @@ -3511,6 +3574,20 @@ GeometryInfo<3>::line_refinement_case(const RefinementCase<3> &cell_refinement_c +template +inline +RefinementCase +GeometryInfo::min_cell_refinement_case_for_face_refinement(const RefinementCase &, + const unsigned int, + const bool, + const bool, + const bool) +{ + Assert(false, ExcNotImplemented()); + + return RefinementCase::no_refinement; +} + template <> inline RefinementCase<1> @@ -3616,6 +3693,16 @@ GeometryInfo<3>::min_cell_refinement_case_for_face_refinement(const RefinementCa +template +inline +RefinementCase +GeometryInfo::min_cell_refinement_case_for_line_refinement(const unsigned int) +{ + Assert(false, ExcNotImplemented()); + + return RefinementCase::no_refinement; +} + template <> inline RefinementCase<1> @@ -3666,10 +3753,6 @@ GeometryInfo<3>::min_cell_refinement_case_for_line_refinement(const unsigned int - - - - template <> inline unsigned int