From: David Wells Date: Wed, 18 Jan 2023 02:42:24 +0000 (-0500) Subject: Remove now-unused orientation functions. X-Git-Tag: v9.5.0-rc1~610^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14702%2Fhead;p=dealii.git Remove now-unused orientation functions. --- diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index e8cf2d7c1d..0e54c2594a 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -1768,37 +1768,6 @@ private: void set_line_orientation(const unsigned int line, const bool orientation) const; - /** - * Set whether the quad with index @p face has its normal pointing in the - * standard direction (@p true) or whether it is the opposite (@p false). - * Which is the standard direction is documented with the GeometryInfo - * class. - * - * This function is only for internal use in the library. Setting this flag - * to any other value than the one that the triangulation has already set is - * bound to bring you disaster. - */ - void - set_face_orientation(const unsigned int face, const bool orientation) const; - - /** - * Set the flag indicating, what face_flip() will return. - * - * It is only possible to set the face_orientation of cells in 3d (i.e. - * structdim==3 && dim==3). - */ - void - set_face_flip(const unsigned int face, const bool flip) const; - - /** - * Set the flag indicating, what face_rotation() will return. - * - * It is only possible to set the face_orientation of cells in 3d (i.e. - * structdim==3 && dim==3). - */ - void - set_face_rotation(const unsigned int face, const bool rotation) const; - /** * Set the combined face orientation (i.e., the integer that uniquely encodes * the orientation, flip, and rotation). diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index faad143516..5d2c9211e2 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -840,92 +840,6 @@ namespace internal accessor.quad(quad_index)->line_orientation(line_within_face_index)); } - - - /** - * Implementation of the function of some name in the mother class. - */ - template - inline static void - set_face_orientation(const TriaAccessor &, - const unsigned int, - const bool) - { - Assert(false, ExcInternalError()); - } - - - inline static void - set_face_orientation(const TriaAccessor<3, 3, 3> &accessor, - const unsigned int face, - const bool value) - { - Assert(accessor.used(), TriaAccessorExceptions::ExcCellNotUsed()); - AssertIndexRange(face, accessor.n_faces()); - - accessor.tria->levels[accessor.present_level] - ->face_orientations.set_orientation( - accessor.present_index * GeometryInfo<3>::faces_per_cell + face, - value); - } - - - - /** - * Implementation of the function of some name in the mother class. - */ - template - inline static void - set_face_flip(const TriaAccessor &, - const unsigned int, - const bool) - { - Assert(false, ExcInternalError()); - } - - - inline static void - set_face_flip(const TriaAccessor<3, 3, 3> &accessor, - const unsigned int face, - const bool value) - { - AssertIndexRange(face, accessor.n_faces()); - - accessor.tria->levels[accessor.present_level] - ->face_orientations.set_flip(accessor.present_index * - GeometryInfo<3>::faces_per_cell + - face, - value); - } - - - - /** - * Implementation of the function of some name in the mother class. - */ - template - inline static void - set_face_rotation(const TriaAccessor &, - const unsigned int, - const bool) - { - Assert(false, ExcInternalError()); - } - - - inline static void - set_face_rotation(const TriaAccessor<3, 3, 3> &accessor, - const unsigned int face, - const bool value) - { - AssertIndexRange(face, accessor.n_faces()); - accessor.tria->levels[accessor.present_level] - ->face_orientations.set_rotation(accessor.present_index * - GeometryInfo<3>::faces_per_cell + - face, - value); - } - /** * Implementation of the function of some name in the mother class. */ @@ -1515,46 +1429,6 @@ TriaAccessor::line_orientation( -template -inline void -TriaAccessor::set_face_orientation( - const unsigned int face, - const bool value) const -{ - Assert(used(), TriaAccessorExceptions::ExcCellNotUsed()); - - dealii::internal::TriaAccessorImplementation::Implementation:: - set_face_orientation(*this, face, value); -} - - - -template -inline void -TriaAccessor::set_face_flip(const unsigned int face, - const bool value) const -{ - Assert(used(), TriaAccessorExceptions::ExcCellNotUsed()); - - dealii::internal::TriaAccessorImplementation::Implementation::set_face_flip( - *this, face, value); -} - - -template -inline void -TriaAccessor::set_face_rotation( - const unsigned int face, - const bool value) const -{ - Assert(used(), TriaAccessorExceptions::ExcCellNotUsed()); - - dealii::internal::TriaAccessorImplementation::Implementation:: - set_face_rotation(*this, face, value); -} - - - template inline void TriaAccessor::set_line_orientation(