From: guido Date: Tue, 18 May 2004 14:28:24 +0000 (+0000) Subject: Assertions and todo's X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7d53371efb37a126a78faa8479d968d2a086e13;p=dealii-svn.git Assertions and todo's git-svn-id: https://svn.dealii.org/trunk@9255 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/tria.cc b/deal.II/deal.II/source/grid/tria.cc index 76d6ab59d3..08e0580dfb 100644 --- a/deal.II/deal.II/source/grid/tria.cc +++ b/deal.II/deal.II/source/grid/tria.cc @@ -4093,6 +4093,7 @@ template unsigned int Triangulation::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 unsigned int Triangulation::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