]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
is_boundary_index() returns false if no boundary indices are set
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 4 Jan 2014 23:12:47 +0000 (23:12 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 4 Jan 2014 23:12:47 +0000 (23:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@32165 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/multigrid/mg_constrained_dofs.h

index 1b6df2b6e311078e2d658f0fa94e347fcdf4e013..bf736c9883c5eaeed80786a73d8f680443f302ff 100644 (file)
@@ -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;

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.