From: kanschat Date: Sat, 4 Jan 2014 23:12:47 +0000 (+0000) Subject: is_boundary_index() returns false if no boundary indices are set X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=887b5743e9d756f7914488edb24ed3bca890cf83;p=dealii-svn.git 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 --- 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;