]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide MSide::operator!=, to avoid an error from cxx.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 25 Feb 2003 15:20:19 +0000 (15:20 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 25 Feb 2003 15:20:19 +0000 (15:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@7242 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/grid_reordering.h
deal.II/deal.II/source/grid/grid_reordering.cc

index 1aae3639848b06ab3d65ac4a695452f3a8eb4114..9eb6dd14833f8a671ac6d016e42dc649cad9aff5 100644 (file)
@@ -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;
index db1a2c6760592a20a4baaf9b4805b7784e8ec192..6a68a5032bbdee1a412b1ea964297f259c337e9f 100644 (file)
@@ -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<CellData<2>,
                                                         std::vector<MSide>,
@@ -1417,9 +1424,7 @@ namespace internal
                  ss.lsn1=i;
                }
              else
-               {
-                 exit(0);
-               }
+               AssertThrow (false, ExcInternalError());
            }
          qctr++;
        }

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.