From 86a9549ff7ba5e09b29e72177fbcf2ca56b449db Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 30 Sep 2003 14:46:34 +0000 Subject: [PATCH] Make get_face_orientation a function in 1d and 2d as well, though they should just trigger an abort. git-svn-id: https://svn.dealii.org/trunk@8070 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/tria_accessor.h | 48 ++++++++++++++++++++ deal.II/deal.II/source/grid/tria_accessor.cc | 22 +++++++++ 2 files changed, 70 insertions(+) diff --git a/deal.II/deal.II/include/grid/tria_accessor.h b/deal.II/deal.II/include/grid/tria_accessor.h index 40bcdb03e5..9249aec2ac 100644 --- a/deal.II/deal.II/include/grid/tria_accessor.h +++ b/deal.II/deal.II/include/grid/tria_accessor.h @@ -675,6 +675,22 @@ class TriaObjectAccessor : public TriaAccessor */ unsigned int number_of_children () const; + /** + * Enquire some information about + * whether the face with the + * given number is in standard + * orientation or not. This + * information is only useful + * (and available) in 3d, see the + * documentation of the + * respective class. For all + * other dimensions, this + * function should not be called + * and triggers and assertion if + * done so. + */ + bool get_face_orientation (const unsigned int face) const; + private: /** * Copy operator. This is normally @@ -1118,6 +1134,22 @@ class TriaObjectAccessor<1, dim> : public TriaAccessor */ unsigned int number_of_children () const; + /** + * Enquire some information about + * whether the face with the + * given number is in standard + * orientation or not. This + * information is only useful + * (and available) in 3d, see the + * documentation of the + * respective class. For all + * other dimensions, this + * function should not be called + * and triggers and assertion if + * done so. + */ + bool get_face_orientation (const unsigned int face) const; + private: /** * Copy operator. This is normally @@ -1583,6 +1615,22 @@ class TriaObjectAccessor<2, dim> : public TriaAccessor */ unsigned int number_of_children () const; + /** + * Enquire some information about + * whether the face with the + * given number is in standard + * orientation or not. This + * information is only useful + * (and available) in 3d, see the + * documentation of the + * respective class. For all + * other dimensions, this + * function should not be called + * and triggers and assertion if + * done so. + */ + bool get_face_orientation (const unsigned int face) const; + private: /** * Copy operator. This is diff --git a/deal.II/deal.II/source/grid/tria_accessor.cc b/deal.II/deal.II/source/grid/tria_accessor.cc index 8f25055ed3..fdd4a0e436 100644 --- a/deal.II/deal.II/source/grid/tria_accessor.cc +++ b/deal.II/deal.II/source/grid/tria_accessor.cc @@ -249,6 +249,16 @@ unsigned int TriaObjectAccessor<1, dim>::number_of_children () const } + +template +bool +TriaObjectAccessor<1,dim>::get_face_orientation (const unsigned int) const +{ + Assert (false, ExcInternalError()); + return true; +} + + /*------------------------ Functions: QuadAccessor ---------------------------*/ template @@ -573,6 +583,7 @@ double TriaObjectAccessor<2, 2>::measure () const x[0]*y[1]/2.0-x[3]*y[2]/2.0+x[1]*y[2]/2.0-x[2]*y[1]/2.0); } + #endif @@ -666,6 +677,17 @@ unsigned int TriaObjectAccessor<2, dim>::number_of_children () const } + +template +bool +TriaObjectAccessor<2,dim>::get_face_orientation (const unsigned int) const +{ + Assert (false, ExcInternalError()); + return true; +} + + + /*------------------------ Functions: TriaObjectAccessor ---------------------------*/ template -- 2.39.5