From 49dae803971f92b0d7c65c0d9f0f781f59dc2452 Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 15 Jun 2023 10:51:58 -0400 Subject: [PATCH] Don't print exc.what(): it isn't portable. --- tests/feinterface/fe_interface_values_13.cc | 4 ++-- .../fe_interface_values_13.debug.output | 14 +------------- tests/hp/non_hp_mode.cc | 3 ++- tests/hp/non_hp_mode.debug.output | 12 +----------- 4 files changed, 6 insertions(+), 27 deletions(-) diff --git a/tests/feinterface/fe_interface_values_13.cc b/tests/feinterface/fe_interface_values_13.cc index 57ef0acdbe..b30619b119 100644 --- a/tests/feinterface/fe_interface_values_13.cc +++ b/tests/feinterface/fe_interface_values_13.cc @@ -74,9 +74,9 @@ test() cell->neighbor_of_neighbor(face_index), numbers::invalid_unsigned_int); } - catch (ExceptionBase &exc) + catch (ExceptionBase & /*exc*/) { - deallog << exc.what() << std::endl; + deallog << "reinit() failed correctly." << std::endl; } deallog << "OK" << std::endl; diff --git a/tests/feinterface/fe_interface_values_13.debug.output b/tests/feinterface/fe_interface_values_13.debug.output index 06ec85d5ad..70f1546df2 100644 --- a/tests/feinterface/fe_interface_values_13.debug.output +++ b/tests/feinterface/fe_interface_values_13.debug.output @@ -1,15 +1,3 @@ -DEAL:: --------------------------------------------------------- -An error occurred in file in function - void dealii::FEInterfaceValues::reinit(const CellIteratorType&, unsigned int, unsigned int, const CellNeighborIteratorType&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) [with CellIteratorType = dealii::TriaIterator >; CellNeighborIteratorType = dealii::TriaIterator >; int dim = 2; int spacedim = 2] -The violated condition was: - dominated_fe_index != numbers::invalid_fe_index -Additional information: - You called this function with 'q_index' left at its default value, but - this can only work if one of the two finite elements adjacent to this - face dominates the other. See the documentation of this function for - more information of how to deal with this situation. --------------------------------------------------------- - +DEAL::reinit() failed correctly. DEAL::OK diff --git a/tests/hp/non_hp_mode.cc b/tests/hp/non_hp_mode.cc index e6ec60bff0..d6fd14ac6e 100644 --- a/tests/hp/non_hp_mode.cc +++ b/tests/hp/non_hp_mode.cc @@ -47,7 +47,8 @@ test() } catch (ExceptionBase &e) { - deallog << e.what() << std::endl; + deallog << "Successfully failed to distribute DoFs with a single " + << "nonzero active FE index" << std::endl; } } diff --git a/tests/hp/non_hp_mode.debug.output b/tests/hp/non_hp_mode.debug.output index 4f97b17266..a9ea11c60c 100644 --- a/tests/hp/non_hp_mode.debug.output +++ b/tests/hp/non_hp_mode.debug.output @@ -1,13 +1,3 @@ -DEAL:: --------------------------------------------------------- -An error occurred in file in function - void dealii::DoFHandler::distribute_dofs(const dealii::hp::FECollection&) [with int dim = 2; int spacedim = 2] -The violated condition was: - cell->active_fe_index() < ff.size() -Additional information: - The mesh contains a cell with an active FE index of 1, but the finite - element collection only has 1 elements --------------------------------------------------------- - +DEAL::Successfully failed to distribute DoFs with a single nonzero active FE index DEAL::OK -- 2.39.5