From 887b5743e9d756f7914488edb24ed3bca890cf83 Mon Sep 17 00:00:00 2001 From: kanschat Date: Sat, 4 Jan 2014 23:12:47 +0000 Subject: [PATCH] is_boundary_index() returns false if no boundary indices are set git-svn-id: https://svn.dealii.org/trunk@32165 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/multigrid/mg_constrained_dofs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h b/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h index 1b6df2b6e3..bf736c9883 100644 --- a/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h +++ b/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h @@ -221,6 +221,9 @@ bool MGConstrainedDoFs::is_boundary_index (const unsigned int level, const types::global_dof_index index) const { + if (boundary_indices.size() == 0) + return false; + AssertIndexRange(level, boundary_indices.size()); if (boundary_indices[level].find(index) != boundary_indices[level].end()) return true; -- 2.39.5