]> https://gitweb.dealii.org/ - dealii.git/commitdiff
More improvements on exceptions with no message.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Mar 2015 02:36:48 +0000 (20:36 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Mar 2015 02:36:48 +0000 (20:36 -0600)
include/deal.II/numerics/data_out_faces.h
source/numerics/data_out_faces.cc

index fa6f5de554f8133d63d2103105ccf359b95dad90..08cffd1e421e1972bb7c432a7eb12d0ca05fe1af 100644 (file)
@@ -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:
   /**
index 8fc90f1ffac97d06f91bcbb17b01a7899e9cc397..9fb37c14008fc531489ac01e3961c24e12b6eb51 100644 (file)
@@ -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<dimension,space_dimension>::active_cell_iterator(cell_and_face->first));

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.