]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix warnings in tests
authorTimo Heister <timo.heister@gmail.com>
Mon, 15 Feb 2010 23:02:35 +0000 (23:02 +0000)
committerTimo Heister <timo.heister@gmail.com>
Mon, 15 Feb 2010 23:02:35 +0000 (23:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@20642 0785d39b-7218-0410-832d-ea1e28bc413d

tests/petsc/12.cc
tests/petsc/13.cc
tests/petsc/14.cc
tests/petsc/15.cc
tests/petsc/16.cc
tests/petsc/20.cc
tests/petsc/21.cc
tests/petsc/53.cc
tests/petsc/54.cc
tests/petsc/55.cc
tests/petsc/56.cc

index 4acf64a57f7ffb9c45e95c25d33e11083694a0f1..1249e2332e7c32a43c7da38a03628935f218b7ad 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 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 (PETScWrappers::Vector &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 7d21cc33dbae32fc599b98582c97c28f993b22ff..70cc15e622b8039dc31b74ab11e8770d88486916 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 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 (PETScWrappers::Vector &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 279cd28d8be8f7d94afe8412b55e95355675e3da..74c540c1a95c60056daaf510850a1e4502b9718a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 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 (PETScWrappers::Vector &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 3d8ad1b826cf2dfaa654eaa37c0ef27a42f1f74a..1abe9decc65da09099e5b5e8453ec1794b48a012 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -41,9 +41,9 @@ void test (PETScWrappers::Vector &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)
+    Assert ( ( (pattern[i] == true) && (v(i) == 2*i) )
              ||
-             (pattern[i] == false) && (v(i) == 0)),
+             ( (pattern[i] == false) && (v(i) == 0) ),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index 7048ae01445ad70921f9e0a9dee4470f8fe4bef7..321e5b6fa6e5b372eab83485b9c198237159e843 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -43,9 +43,9 @@ void test (PETScWrappers::Vector &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 3529ee914eb1071907bac47ab538d2aa8bc060c7..e031146103b015d518659a68c29b8f39af23f0f4 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -39,9 +39,9 @@ void test (PETScWrappers::Vector &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.)
+    Assert ( ( (pattern[i] == true) && (v(i) == i*5./4.) )
              ||
-             (pattern[i] == false) && (v(i) == 0)),
+             ( (pattern[i] == false) && (v(i) == 0) ),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index c614b41148bde5552c807e76b336f5453329ade8..0e1979531354c16124588fddca0eb1fe0139541f 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -39,9 +39,9 @@ void test (PETScWrappers::Vector &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.)
+    Assert ( ( (pattern[i] == true) && (v(i) == i*3./4.) )
              ||
-             (pattern[i] == false) && (v(i) == 0)),
+             ( (pattern[i] == false) && (v(i) == 0) ),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index 784e6213366811019f1b73d02b6750f06b3d40cb..817afca07ba982e50a3376811d46c1bac798c4d7 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -40,9 +40,9 @@ void test (PETScWrappers::Vector &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)),
+    Assert ( ( (pattern[i] == true) && (v(i) == 2*i) )
+            ||
+            ( (pattern[i] == false) && (v(i) == 0) ),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index 480ddd25f81f79d1871ec36818aa2105aac2c67c..e9486ee952e113c919683438a3e1461f22e6354a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -40,9 +40,9 @@ void test (PETScWrappers::Vector &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 7d20d41967a87414808a2699ba3d9ad6b4f30af9..b9b434b42b8ae09dfd364af2f91e913321a99283 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -40,9 +40,9 @@ void test (PETScWrappers::Vector &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)
+    Assert ( ( (pattern[i] == true) && (v(i) == 2*i) )
              ||
-             (pattern[i] == false) && (v(i) == 0)),
+             ( (pattern[i] == false) && (v(i) == 0) ),
              ExcInternalError());
 
   deallog << "OK" << std::endl;
index c28323f21bab36fef93af4bca70ae45ab36c9af7..40a54e09338ab3e5b380a8711f9b42c094a0ae51 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2004, 2005 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -40,9 +40,9 @@ void test (PETScWrappers::Vector &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;

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.