From: Luca Heltai Date: Sat, 24 Nov 2018 09:43:31 +0000 (+0100) Subject: Fixed WB comments. X-Git-Tag: v9.1.0-rc1~531^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65dfc663d18c02a42897528cf5cee0835619974c;p=dealii.git Fixed WB comments. --- diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index 715eeade43..b73071eaa2 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -3074,7 +3074,7 @@ public: /** * Return the total number of used faces, active or not. In 2D, the result * equals n_lines(), in 3D it equals n_quads(), while in 1D it equals - * the number of vertices. + * the number of used vertices. */ unsigned int n_faces() const; diff --git a/source/grid/tria.cc b/source/grid/tria.cc index faf15d88f7..36fef9772d 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -12520,7 +12520,7 @@ Triangulation::n_faces() const switch (dim) { case 1: - return n_vertices(); + return n_used_vertices(); case 2: return n_lines(); case 3: diff --git a/tests/grid/n_faces_01.output b/tests/grid/n_faces_01.output index 9951c686cc..c35e4ab636 100644 --- a/tests/grid/n_faces_01.output +++ b/tests/grid/n_faces_01.output @@ -1,6 +1,6 @@ -DEAL::Counted: 4, active: 4, total: 5, raw: 5 -DEAL::Counted: 4, active: 4, total: 5, raw: 5 +DEAL::Counted: 4, active: 4, total: 4, raw: 5 +DEAL::Counted: 4, active: 4, total: 4, raw: 5 DEAL::Counted: 40, active: 40, total: 56, raw: 56 DEAL::Counted: 40, active: 40, total: 56, raw: 56 DEAL::Counted: 240, active: 240, total: 282, raw: 282