From 2b9d8d23dfebed64539312703ce6f2a9d7cf8fff Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 11 Jan 2015 14:05:54 -0600 Subject: [PATCH] Use complete sentences in error messages. --- include/deal.II/grid/tria_accessor.templates.h | 14 +++++++++----- source/grid/tria_accessor.cc | 5 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index edf89df189..621ba6bd44 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -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::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::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::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::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]; } diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index d6d13e3efd..f6f54fb3ef 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -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::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; } -- 2.39.5