Skip to content

Commit

Permalink
Remove now-unused orientation functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
drwells committed Jan 18, 2023
1 parent 305a048 commit 14f3787
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 157 deletions.
31 changes: 0 additions & 31 deletions include/deal.II/grid/tria_accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -1768,37 +1768,6 @@ class TriaAccessor : public TriaAccessorBase<structdim, dim, spacedim>
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 <code>face_flip()</code> will return.
*
* It is only possible to set the face_orientation of cells in 3d (i.e.
* <code>structdim==3 && dim==3</code>).
*/
void
set_face_flip(const unsigned int face, const bool flip) const;

/**
* Set the flag indicating, what <code>face_rotation()</code> will return.
*
* It is only possible to set the face_orientation of cells in 3d (i.e.
* <code>structdim==3 && dim==3</code>).
*/
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).
Expand Down
126 changes: 0 additions & 126 deletions include/deal.II/grid/tria_accessor.templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <int structdim, int dim, int spacedim>
inline static void
set_face_orientation(const TriaAccessor<structdim, dim, spacedim> &,
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 <int structdim, int dim, int spacedim>
inline static void
set_face_flip(const TriaAccessor<structdim, dim, spacedim> &,
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 <int structdim, int dim, int spacedim>
inline static void
set_face_rotation(const TriaAccessor<structdim, dim, spacedim> &,
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.
*/
Expand Down Expand Up @@ -1515,46 +1429,6 @@ TriaAccessor<structdim, dim, spacedim>::line_orientation(



template <int structdim, int dim, int spacedim>
inline void
TriaAccessor<structdim, dim, spacedim>::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 <int structdim, int dim, int spacedim>
inline void
TriaAccessor<structdim, dim, spacedim>::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 <int structdim, int dim, int spacedim>
inline void
TriaAccessor<structdim, dim, spacedim>::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 <int structdim, int dim, int spacedim>
inline void
TriaAccessor<structdim, dim, spacedim>::set_line_orientation(
Expand Down

0 comments on commit 14f3787

Please sign in to comment.