]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove workarounds for gcc2.95
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 9 Sep 2007 00:17:44 +0000 (00:17 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 9 Sep 2007 00:17:44 +0000 (00:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@15172 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_precondition.h
deal.II/lac/include/lac/petsc_solver.h

index f8a77a4b6f6566c47abf620c692bbcdc2fc39335..25c8b35f74b5f94ef7a72c17713bd29596735f73 100644 (file)
@@ -244,14 +244,9 @@ namespace PETScWrappers
                                         * is used to form the preconditioner,
                                         * and additional flags if there are
                                         * any.
-                                        *
-                                        * We specify the (default) value to
-                                        * the constructor call in the default
-                                        * argument because otherwise gcc 2.95
-                                        * generates a compiler fault.
                                         */
       PreconditionSOR (const MatrixBase     &matrix,
-                       const AdditionalData &additional_data = AdditionalData(1));
+                       const AdditionalData &additional_data = AdditionalData());
       
     protected:
                                        /**
@@ -310,14 +305,9 @@ namespace PETScWrappers
                                         * is used to form the preconditioner,
                                         * and additional flags if there are
                                         * any.
-                                        *
-                                        * We specify the (default) value to
-                                        * the constructor call in the default
-                                        * argument because otherwise gcc 2.95
-                                        * generates a compiler fault.
                                         */
       PreconditionSSOR (const MatrixBase     &matrix,
-                        const AdditionalData &additional_data = AdditionalData(1));
+                        const AdditionalData &additional_data = AdditionalData());
       
     protected:
                                        /**
@@ -376,14 +366,9 @@ namespace PETScWrappers
                                         * is used to form the preconditioner,
                                         * and additional flags if there are
                                         * any.
-                                        *
-                                        * We specify the (default) value to
-                                        * the constructor call in the default
-                                        * argument because otherwise gcc 2.95
-                                        * generates a compiler fault.
                                         */
       PreconditionEisenstat (const MatrixBase     &matrix,
-                             const AdditionalData &additional_data = AdditionalData(1));
+                             const AdditionalData &additional_data = AdditionalData());
       
     protected:
                                        /**
@@ -442,14 +427,9 @@ namespace PETScWrappers
                                         * is used to form the preconditioner,
                                         * and additional flags if there are
                                         * any.
-                                        *
-                                        * We specify the (default) value to
-                                        * the constructor call in the default
-                                        * argument because otherwise gcc 2.95
-                                        * generates a compiler fault.
                                         */
       PreconditionICC (const MatrixBase     &matrix,
-                       const AdditionalData &additional_data = AdditionalData(0));
+                       const AdditionalData &additional_data = AdditionalData());
       
     protected:
                                        /**
@@ -508,14 +488,9 @@ namespace PETScWrappers
                                         * is used to form the preconditioner,
                                         * and additional flags if there are
                                         * any.
-                                        *
-                                        * We specify the (default) value to
-                                        * the constructor call in the default
-                                        * argument because otherwise gcc 2.95
-                                        * generates a compiler fault.
                                         */
       PreconditionILU (const MatrixBase     &matrix,
-                       const AdditionalData &additional_data = AdditionalData(0));
+                       const AdditionalData &additional_data = AdditionalData());
       
     protected:
                                        /**
@@ -598,15 +573,9 @@ namespace PETScWrappers
                                         * is used to form the preconditioner,
                                         * and additional flags if there are
                                         * any.
-                                        *
-                                        * We specify the (default) value to
-                                        * the constructor call in the default
-                                        * argument because otherwise gcc 2.95
-                                        * generates a compiler fault.
                                         */
       PreconditionLU (const MatrixBase     &matrix,
-                     const AdditionalData &additional_data = 
-                     AdditionalData(1.e-6, 1.e-12, 0.0));
+                     const AdditionalData &additional_data = AdditionalData());
       
     protected:
                                        /**
index 57255723464fdb9c0099ef8a80a7474bbb79a1c2..03ec10e52fb69ed88d9155360b4f41889835fa77 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -276,11 +276,7 @@ namespace PETScWrappers
                                         *
                                         * The last argument takes a structure
                                         * with additional, solver dependent
-                                        * flags for tuning. We specify the
-                                        * (default) value to the constructor
-                                        * call in this default argument
-                                        * because otherwise gcc 2.95 generates
-                                        * a compiler fault.
+                                        * flags for tuning.
                                         *
                                         * Note that the communicator used here
                                         * must match the communicator used in
@@ -294,7 +290,7 @@ namespace PETScWrappers
                                         */
       SolverRichardson (SolverControl        &cn,
                         const MPI_Comm       &mpi_communicator = PETSC_COMM_SELF,
-                        const AdditionalData &data = AdditionalData(1));
+                        const AdditionalData &data = AdditionalData());
 
     protected:
                                        /**
@@ -572,11 +568,7 @@ namespace PETScWrappers
                                         *
                                         * The last argument takes a structure
                                         * with additional, solver dependent
-                                        * flags for tuning. We specify the
-                                        * (default) value to the constructor
-                                        * call in this default argument
-                                        * because otherwise gcc 2.95 generates
-                                        * a compiler fault.
+                                        * flags for tuning.
                                         *
                                         * Note that the communicator used here
                                         * must match the communicator used in
@@ -590,7 +582,7 @@ namespace PETScWrappers
                                         */
       SolverGMRES (SolverControl        &cn,
                    const MPI_Comm       &mpi_communicator = PETSC_COMM_SELF,
-                   const AdditionalData &data = AdditionalData(30,false));
+                   const AdditionalData &data = AdditionalData());
 
     protected:
                                        /**

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.