]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use parentheses to avoid a warning in recent gcc4.3's
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 26 Jan 2007 04:20:19 +0000 (04:20 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 26 Jan 2007 04:20:19 +0000 (04:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@14377 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/vector_12.cc
tests/bits/vector_13.cc
tests/bits/vector_14.cc
tests/bits/vector_15.cc
tests/bits/vector_16.cc
tests/bits/vector_20.cc
tests/bits/vector_21.cc

index 3fab681aa74a716e177f4a116ccabb0c5ef8f904..fa198bce23c665a35fd1f7810dccf50553ff5f25 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -38,9 +38,9 @@ void test (Vector<double> &v)
                                    // check that they are ok, and this time
                                    // all of them
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == i)
+    Assert ((((pattern[i] == true) && (v(i) == i))
              ||
-             (pattern[i] == false) && (v(i) == 0)),
+             ((pattern[i] == false) && (v(i) == 0))),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index 0cff64ac2a3fef94bc7cebe1f8b8b8e272ef2ce5..000b1ae888a845cc0a1facb2fc6d932bd3cc394f 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -38,9 +38,9 @@ void test (Vector<double> &v)
                                    // check that they are ok, and this time
                                    // all of them
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == i)
+    Assert ((((pattern[i] == true) && (v(i) == i))
              ||
-             (pattern[i] == false) && (v(i) == 0)),
+             ((pattern[i] == false) && (v(i) == 0))),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index 389c20e29c330dcfdd4cb3beecceb8f867a80272..edab4e4ffed24d7d4e3904c1410c5fcd8f63ef37 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -44,9 +44,9 @@ void test (Vector<double> &v)
                                    // check that they are ok, and this time
                                    // all of them
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == i)
-             ||
-             (pattern[i] == false) && (v(i) == 0)),
+    Assert (((pattern[i] == true) && (v(i) == i))
+           ||
+           ((pattern[i] == false) && (v(i) == 0)),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index 9c6e3aab8ff55f0a709fbdd70e0594134b1f3f67..ea301f5193812764b30c54272845afea9de60774 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -41,10 +41,10 @@ void test (Vector<double> &v)
                                    // check that they are ok, and this time
                                    // all of them
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == 2*i)
-             ||
-             (pattern[i] == false) && (v(i) == 0)),
-             ExcInternalError());
+    Assert (((pattern[i] == true) && (v(i) == 2*i))
+           ||
+           ((pattern[i] == false) && (v(i) == 0)),
+           ExcInternalError());
 
   deallog << "OK" << std::endl;
 }
index 85371348cab079a36f6968c9a8754ae0b1374ca1..f6549839ae2142ff112a439f0e1d0a9ef78440cd 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -43,10 +43,10 @@ void test (Vector<double> &v)
                                    // check that they are ok, and this time
                                    // all of them
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == i)
-             ||
-             (pattern[i] == false) && (v(i) == 0)),
-             ExcInternalError());
+    Assert (((pattern[i] == true) && (v(i) == i))
+           ||
+           ((pattern[i] == false) && (v(i) == 0)),
+           ExcInternalError());
 
   deallog << "OK" << std::endl;
 }
index 23cf1a919de561a833824111c5369f832f124752..0e18588809148e7edb814df45afe8009bbd70c89 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -39,10 +39,10 @@ void test (Vector<double> &v)
 
                                    // check that the entries are ok
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == i*5./4.)
-             ||
-             (pattern[i] == false) && (v(i) == 0)),
-             ExcInternalError());
+    Assert (((pattern[i] == true) && (v(i) == i*5./4.))
+           ||
+           ((pattern[i] == false) && (v(i) == 0)),
+           ExcInternalError());
 
   deallog << "OK" << std::endl;
 }
index 3121bcc94d0a9f24695d2bac97d25bcb25665834..0fe1a0acbeceac8ebbb1dc353968fe23a322a682 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -39,10 +39,10 @@ void test (Vector<double> &v)
 
                                    // check that the entries are ok
   for (unsigned int i=0; i<v.size(); ++i)
-    Assert (((pattern[i] == true) && (v(i) == i*3./4.)
-             ||
-             (pattern[i] == false) && (v(i) == 0)),
-             ExcInternalError());
+    Assert (((pattern[i] == true) && (v(i) == i*3./4.))
+           ||
+           ((pattern[i] == false) && (v(i) == 0)),
+           ExcInternalError());
 
   deallog << "OK" << std::endl;
 }

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.