]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Assertions and todo's
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 18 May 2004 14:28:24 +0000 (14:28 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 18 May 2004 14:28:24 +0000 (14:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@9255 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 76d6ab59d3154cb90425c0ea94624c96bf1b953e..08e0580dfbe9646ae20203e0fcfe240be2d5ea82 100644 (file)
@@ -4093,6 +4093,7 @@ template <int dim>
 unsigned int
 Triangulation<dim>::n_faces(unsigned int l) const
 {
+  Assert (dim<=3, ExcNotImplemented());
   if (dim==2) return n_lines(l);
   if (dim==3) return n_quads(l);
   return 0;
@@ -4104,12 +4105,15 @@ template <int dim>
 unsigned int
 Triangulation<dim>::n_active_faces(unsigned int l) const
 {
+  Assert (dim<=3, ExcNotImplemented());
   if (dim==2) return n_active_lines(l);
   if (dim==3) return n_active_quads(l);
   return 0;
 }
 
 
+//TODO:[GK] Implement this like above and remove specialization declaration in tria.h
+//TODO:[GK] Add a remark to Triangulation doc telling 1d-Triangulations have no face
 
 #if deal_II_dimension == 1
 

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.