]> https://gitweb.dealii.org/ - dealii.git/commitdiff
more bugs removed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 13 Feb 2006 16:29:53 +0000 (16:29 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 13 Feb 2006 16:29:53 +0000 (16:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@12363 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b905d30af7998056038a8581e9f671f4d5c93552..24d48440b2c7920fef48fe899b8897688c322e28 100644 (file)
@@ -4060,7 +4060,7 @@ unsigned int Triangulation<dim>::n_lines () const {
 template <int dim>
 unsigned int Triangulation<dim>::n_raw_lines (const unsigned int level) const
 {
-  Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+  Assert(level < n_levels(), ExcIndexRange(level,0,n_levels()));
   return levels[level]->lines.lines.size();
 }
 
@@ -4105,15 +4105,15 @@ unsigned int Triangulation<1>::n_quads (const unsigned int) const
 }
 
 
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
+template <>
+unsigned int Triangulation<1>::n_raw_quads (const unsigned int) const
 {
   return 0;
 }
 
 
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
+template <>
+unsigned int Triangulation<1>::n_raw_hexs (const unsigned int) const
 {
   return 0;
 }
@@ -4154,18 +4154,11 @@ unsigned int Triangulation<dim>::n_quads (const unsigned int level) const {
 template <int dim>
 unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
 {
-  Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+  Assert(level < n_levels(), ExcIndexRange(level,0,n_levels()));
   return levels[level]->quads.quads.size();
 }
 
 
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
-{
-  return 0;
-}
-
-
 template <int dim>
 unsigned int Triangulation<dim>::n_active_quads () const {
   return number_cache.n_active_quads;
@@ -4199,6 +4192,13 @@ unsigned int Triangulation<dim>::n_hexs (const unsigned int) const
 
 
 
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int) const
+{
+  return 0;
+}
+
+
 template <int dim>
 unsigned int Triangulation<dim>::n_active_hexs () const
 {
@@ -4236,19 +4236,11 @@ unsigned int Triangulation<dim>::n_hexs (const unsigned int level) const
 
 
 
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
-{
-  Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
-  return levels[level]->quads.quads.size();
-}
-
-
 template <int dim>
 unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
 {
-  Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
-  return levels[level]->hexs.hexs.size();
+  Assert(level < n_levels(), ExcIndexRange(level,0,n_levels()));
+  return levels[level]->hexes.hexes.size();
 }
 
 

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.