From bb6da2fc7e8f1f763e0914e200c45db37a0eb14b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 3 Mar 2015 20:36:48 -0600 Subject: [PATCH] More improvements on exceptions with no message. --- include/deal.II/numerics/data_out_faces.h | 8 ++------ source/numerics/data_out_faces.cc | 5 ++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/deal.II/numerics/data_out_faces.h b/include/deal.II/numerics/data_out_faces.h index fa6f5de554..08cffd1e42 100644 --- a/include/deal.II/numerics/data_out_faces.h +++ b/include/deal.II/numerics/data_out_faces.h @@ -224,12 +224,8 @@ public: DeclException1 (ExcInvalidNumberOfSubdivisions, int, << "The number of subdivisions per patch, " << arg1 - << ", is not valid."); - - /** - * Exception - */ - DeclException0 (ExcCellNotActiveForCellData); + << ", is not valid. It needs to be greater or equal " + << "to one."); private: /** diff --git a/source/numerics/data_out_faces.cc b/source/numerics/data_out_faces.cc index 8fc90f1ffa..9fb37c1400 100644 --- a/source/numerics/data_out_faces.cc +++ b/source/numerics/data_out_faces.cc @@ -245,7 +245,10 @@ build_one_patch (const FaceDescriptor *cell_and_face, // we need to get at the number of the cell to which this face // belongs in order to access the cell data. this is not readily // available, so choose the following rather inefficient way: - Assert (cell_and_face->first->active(), ExcCellNotActiveForCellData()); + Assert (cell_and_face->first->active(), + ExcMessage("The current function is trying to generate cell-data output " + "for a face that does not belong to an active cell. This is " + "not supported.")); const unsigned int cell_number = std::distance (this->triangulation->begin_active(), typename Triangulation::active_cell_iterator(cell_and_face->first)); -- 2.39.5