From 65dfc663d18c02a42897528cf5cee0835619974c Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Sat, 24 Nov 2018 10:43:31 +0100 Subject: [PATCH] Fixed WB comments. --- include/deal.II/grid/tria.h | 2 +- source/grid/tria.cc | 2 +- tests/grid/n_faces_01.output | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5