From 4572e4cd28da22cd25767c5704666a7b909b2f6f Mon Sep 17 00:00:00 2001 From: heister Date: Sun, 2 Jun 2013 22:22:01 +0000 Subject: [PATCH] update test git-svn-id: https://svn.dealii.org/trunk@29729 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/get_dof_indices_01.cc | 18 ++++++++++++++---- tests/bits/get_dof_indices_01/cmp/generic | 6 +++--- 2 files changed, 17 insertions(+), 7 deletions(-) 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