From: Timo Heister Date: Sun, 2 Jun 2013 22:22:01 +0000 (+0000) Subject: update test X-Git-Tag: v8.0.0~331 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61d0da01150dd693d9d56318ec511c893f50bd15;p=dealii.git update test git-svn-id: https://svn.dealii.org/trunk@29729 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/get_dof_indices_01.cc b/tests/bits/get_dof_indices_01.cc index f97d6958d1..1066610b07 100644 --- a/tests/bits/get_dof_indices_01.cc +++ b/tests/bits/get_dof_indices_01.cc @@ -12,8 +12,8 @@ //---------------------------- get_dof_indices_01.cc --------------------------- -// make sure we can call DoFCellAccessor::get_dof_indices also for -// inactive cells +// we used to be able to call DoFCellAccessor::get_dof_indices also for +// inactive cells, check that this is now forbidden. #include "../tests.h" #include @@ -57,8 +57,17 @@ void test () for (typename DoFHandler::cell_iterator cell=dof_handler.begin(); cell != dof_handler.end(); ++cell) { - cell->get_dof_indices (local_dof_indices); - + try + { + cell->get_dof_indices (local_dof_indices); + } + catch(...) + { + deallog << "Assertion: cell not active." << std::endl; + continue; + } + + deallog << "Cell = " << cell << ", DoFs="; for (unsigned int i=0; i