]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Give DoFAccessor::ExcInvalidObject text.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 9 Dec 2017 17:59:09 +0000 (12:59 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 9 Dec 2017 19:09:43 +0000 (14:09 -0500)
include/deal.II/dofs/dof_accessor.h
include/deal.II/dofs/dof_accessor.templates.h

index 57f1a959a3d79890ffb04d6a2b63a27679e8933b..3714ccd57937385aca79560163bec188770407e3 100644 (file)
@@ -552,7 +552,8 @@ public:
    *
    * @ingroup Exceptions
    */
-  DeclException0 (ExcInvalidObject);
+  DeclExceptionMsg (ExcInvalidObject, "This accessor object has not been "
+                    "associated with any DoFHandler object.");
   /**
    * Exception
    *
@@ -1018,7 +1019,8 @@ public:
    *
    * @ingroup Exceptions
    */
-  DeclException0 (ExcInvalidObject);
+  DeclExceptionMsg (ExcInvalidObject, "This accessor object has not been "
+                    "associated with any DoFHandler object.");
   /**
    * Exception
    *
index ade4e1ac8dff926ea8d0b8cb251e9651467521a7..839736aa9354da0fc8363f11a7fd0c5f01187a0d 100644 (file)
@@ -2011,9 +2011,7 @@ DoFAccessor<structdim,DoFHandlerType,level_dof_access>::get_dof_indices
 (std::vector<types::global_dof_index> &dof_indices,
  const unsigned int                    fe_index) const
 {
-  Assert (this->dof_handler != nullptr,
-          ExcMessage("This accessor object has not been associated "
-                     "with any DoFHandler object."));
+  Assert (this->dof_handler != nullptr, ExcInvalidObject());
   Assert (static_cast<unsigned int>(this->level()) < this->dof_handler->levels.size(),
           ExcMessage ("The DoFHandler to which this accessor points has not "
                       "been initialized, i.e., it doesn't appear that DoF indices "

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.