From: kanschat Date: Tue, 5 Jun 2007 16:52:39 +0000 (+0000) Subject: add a function face_orientation to the TriaObjects template X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0b051a7e4213849efeb20a484414c2780d3eb5e;p=dealii-svn.git add a function face_orientation to the TriaObjects template git-svn-id: https://svn.dealii.org/trunk@14754 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/tria_objects.h b/deal.II/deal.II/include/grid/tria_objects.h index cfc33e0b58..9db759b4f0 100644 --- a/deal.II/deal.II/include/grid/tria_objects.h +++ b/deal.II/deal.II/include/grid/tria_objects.h @@ -146,7 +146,25 @@ namespace internal * Clear all the data contained in this object. */ void clear(); - + + /** + * The orientation of the + * face number face + * of the cell with number + * cell. The return + * value is true, if + * the normal vector points + * the usual way and + * false else. + * + * The result is always + * true in this + * class, but derived vlasses + * will reimplement this. + */ + bool face_orientation(const unsigned int cell, const unsigned int face) const; + + /** * Access to user pointers. */ @@ -431,7 +449,15 @@ namespace internal */ unsigned int memory_consumption () const; }; + + template + bool TriaObjects::face_orientation(const unsigned int, const unsigned int) const + { + return true; + } + + template void*& TriaObjects::user_pointer (const unsigned int i) {