From: Wolfgang Bangerth Date: Thu, 26 Apr 2012 07:37:56 +0000 (+0000) Subject: Re-shuffle code to avoid triggering an assertion. X-Git-Tag: v8.0.0~2653 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a1978ac1884dd663fe83632c3a766f3629f645f;p=dealii.git Re-shuffle code to avoid triggering an assertion. git-svn-id: https://svn.dealii.org/trunk@25447 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/hp/fe_nothing_02.cc b/tests/hp/fe_nothing_02.cc index f86181b7db..8b4cd82d63 100644 --- a/tests/hp/fe_nothing_02.cc +++ b/tests/hp/fe_nothing_02.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009 by the deal.II authors +// Copyright (C) 2009, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -95,19 +95,20 @@ void test () for(; cell !=endc; cell++) { + deallog << "This is a " + << (cell->active_fe_index() == 1 ? "FE_Nothing" : "FE_Q") + << " cell" + << std::endl; - // attempt to reinit hp_fe_values object + if (cell->get_fe().dofs_per_cell == 0) + continue; + // attempt to reinit hp_fe_values object hp_fe_values.reinit (cell); const unsigned int dofs_per_cell = cell->get_fe().dofs_per_cell; const FEValues &fe_values = hp_fe_values.get_present_fe_values (); - deallog << "This is a " - << (cell->active_fe_index() == 1 ? "FE_Nothing" : "FE_Q") - << " cell" - << std::endl; - for (unsigned int q_point=0; q_point