]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use complete sentences in error messages. 418/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 11 Jan 2015 20:05:54 +0000 (14:05 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 12 Jan 2015 01:02:40 +0000 (19:02 -0600)
include/deal.II/grid/tria_accessor.templates.h
source/grid/tria_accessor.cc

index edf89df1899404d8a27f4401013ab09ce37000df..621ba6bd449539355e5bc9600d36cda946d15935 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 1999 - 2014 by the deal.II authors
+// Copyright (C) 1999 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -2963,7 +2963,8 @@ inline
 bool
 CellAccessor<dim,spacedim>::is_locally_owned () const
 {
-  Assert (this->active(), ExcMessage("is_locally_owned() only works on active cells!"));
+  Assert (this->active(),
+          ExcMessage("is_locally_owned() can only be called on active cells!"));
 #ifndef DEAL_II_WITH_P4EST
   return true;
 #else
@@ -3005,7 +3006,8 @@ inline
 bool
 CellAccessor<dim,spacedim>::is_ghost () const
 {
-  Assert (this->active(), ExcMessage("is_ghost() only works on active cells!"));
+  Assert (this->active(),
+          ExcMessage("is_ghost() can only be called on active cells!"));
 #ifndef DEAL_II_WITH_P4EST
   return false;
 #else
@@ -3029,7 +3031,8 @@ inline
 bool
 CellAccessor<dim,spacedim>::is_artificial () const
 {
-  Assert (this->active(), ExcMessage("is_artificial() only works on active cells!"));
+  Assert (this->active(),
+          ExcMessage("is_artificial() can only be called on active cells!"));
 #ifndef DEAL_II_WITH_P4EST
   return false;
 #else
@@ -3045,7 +3048,8 @@ types::subdomain_id
 CellAccessor<dim, spacedim>::subdomain_id () const
 {
   Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
-  Assert (this->active(), ExcMessage("subdomains only work on active cells!"));
+  Assert (this->active(),
+          ExcMessage("subdomain_id() can only be called on active cells!"));
   return this->tria->levels[this->present_level]->subdomain_ids[this->present_index];
 }
 
index d6d13e3efd3aee30f2cf61a60bca4b873daa3fc1..f6f54fb3ef1fe15d492c61eb1f0858a2f6fe5db1 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 1998 - 2014 by the deal.II authors
+// Copyright (C) 1998 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -1475,7 +1475,8 @@ void
 CellAccessor<dim, spacedim>::set_subdomain_id (const types::subdomain_id new_subdomain_id) const
 {
   Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
-  Assert (this->active(), ExcMessage("subdomains only work on active cells!"));
+  Assert (this->active(),
+          ExcMessage("set_subdomain_id() can only be called on active cells!"));
   this->tria->levels[this->present_level]->subdomain_ids[this->present_index]
     = new_subdomain_id;
 }

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.