]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't print exc.what(): it isn't portable. 15360/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 15 Jun 2023 14:51:58 +0000 (10:51 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 15 Jun 2023 14:51:58 +0000 (10:51 -0400)
tests/feinterface/fe_interface_values_13.cc
tests/feinterface/fe_interface_values_13.debug.output
tests/hp/non_hp_mode.cc
tests/hp/non_hp_mode.debug.output

index 57ef0acdbe639ea5dcda19d663368360e83503e4..b30619b119d00874ec005dfc00c5a736dde04330 100644 (file)
@@ -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;
index 06ec85d5adc1c169cee374d541d0cb0e748b5ce0..70f1546df26f6fd70b9b87894951f087945b7d13 100644 (file)
@@ -1,15 +1,3 @@
 
-DEAL::
---------------------------------------------------------
-An error occurred in file <fe_interface_values.h> in function
-    void dealii::FEInterfaceValues<dim, spacedim>::reinit(const CellIteratorType&, unsigned int, unsigned int, const CellNeighborIteratorType&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) [with CellIteratorType = dealii::TriaIterator<dealii::DoFCellAccessor<2, 2, false> >; CellNeighborIteratorType = dealii::TriaIterator<dealii::DoFCellAccessor<2, 2, false> >; 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
index e6ec60bff0500dac572926510ddaef0290e88a1a..d6fd14ac6e6f16d51131da72574198932bb0cb87 100644 (file)
@@ -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;
     }
 }
 
index 4f97b17266780860fd23f6b59326aee8603eb265..a9ea11c60c680a8441bba4282416cd94888dacd3 100644 (file)
@@ -1,13 +1,3 @@
 
-DEAL::
---------------------------------------------------------
-An error occurred in file <dof_handler.cc> in function
-    void dealii::DoFHandler<dim, spacedim>::distribute_dofs(const dealii::hp::FECollection<dim, spacedim>&) [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

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.