]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Instead of returning a useless level number 0, face->level() and line->level() in...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Jul 2006 14:19:19 +0000 (14:19 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Jul 2006 14:19:19 +0000 (14:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@13327 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_accessor.templates.h

index 712de028435d1b9de6a04595471784bb00d2b854..a6d194dc8522dce0aab1d67fae1b199dc207eb54 100644 (file)
@@ -165,6 +165,7 @@ inline
 int
 TriaObjectAccessor<1,dim>::level () const
 {
+  Assert(dim==1, typename TriaAccessor<dim>::ExcFacesHaveNoLevel());
   return TriaAccessor<dim>::level();
 }
 
@@ -424,6 +425,7 @@ inline
 int
 TriaObjectAccessor<2,dim>::level () const
 {
+  Assert(dim==2, typename TriaAccessor<dim>::ExcFacesHaveNoLevel());
   return TriaAccessor<dim>::level();
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.