From: wolf Date: Tue, 25 Feb 2003 15:20:19 +0000 (+0000) Subject: Provide MSide::operator!=, to avoid an error from cxx. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2f3d9e8b7847fb7b325c44695789b5a937112a;p=dealii-svn.git Provide MSide::operator!=, to avoid an error from cxx. git-svn-id: https://svn.dealii.org/trunk@7242 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/grid_reordering.h b/deal.II/deal.II/include/grid/grid_reordering.h index 1aae363984..9eb6dd1483 100644 --- a/deal.II/deal.II/include/grid/grid_reordering.h +++ b/deal.II/deal.II/include/grid/grid_reordering.h @@ -215,7 +215,12 @@ namespace internal * ends are reversed. */ bool operator==(const MSide& s2) const; - + + /** + * Return the opposite. + */ + bool operator!=(const MSide& s2) const; + unsigned int v0; unsigned int v1; unsigned int Q0; diff --git a/deal.II/deal.II/source/grid/grid_reordering.cc b/deal.II/deal.II/source/grid/grid_reordering.cc index db1a2c6760..6a68a5032b 100644 --- a/deal.II/deal.II/source/grid/grid_reordering.cc +++ b/deal.II/deal.II/source/grid/grid_reordering.cc @@ -1319,6 +1319,13 @@ namespace internal return false; } + + bool + MSide::operator!= (const MSide& s2) const + { + return !(*this == s2); + } + struct MQuad::MakeQuad : public std::binary_function, std::vector, @@ -1417,9 +1424,7 @@ namespace internal ss.lsn1=i; } else - { - exit(0); - } + AssertThrow (false, ExcInternalError()); } qctr++; }