]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around nasty problems with gcc 2.95.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 8 Mar 2004 15:49:31 +0000 (15:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 8 Mar 2004 15:49:31 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@8675 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e6f84de8d5577cb81be0f4f3939aa08a9f7b9bc6..d591e618b779b9be87bacde32e057a9db7e7bcb6 100644 (file)
@@ -177,9 +177,14 @@ 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());
+                       const AdditionalData &additional_data = AdditionalData(1));
       
     protected:
                                        /**
@@ -234,9 +239,14 @@ 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());
+                        const AdditionalData &additional_data = AdditionalData(1));
       
     protected:
                                        /**
@@ -291,9 +301,14 @@ 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());
+                             const AdditionalData &additional_data = AdditionalData(1));
       
     protected:
                                        /**
@@ -348,9 +363,14 @@ 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());
+                       const AdditionalData &additional_data = AdditionalData(0));
       
     protected:
                                        /**
@@ -405,9 +425,14 @@ 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());
+                       const AdditionalData &additional_data = AdditionalData(0));
       
     protected:
                                        /**
index 378e6e8a15602588c92d97e0387acf3a71b079f8..1923007f4d2a66fb77c9438a90ddc976a50685bf 100644 (file)
@@ -180,11 +180,15 @@ namespace PETScWrappers
                                         *
                                         * The last argument takes a structure
                                         * with additional, solver dependent
-                                        * flags for tuning.
+                                        * 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.
                                         */
       SolverRichardson (SolverControl        &cn,
                         MPI_Comm             &mpi_communicator = PETSC_COMM_SELF,
-                        const AdditionalData &data = AdditionalData());
+                        const AdditionalData &data = AdditionalData(1));
 
     protected:
                                        /**
@@ -422,11 +426,15 @@ namespace PETScWrappers
                                         *
                                         * The last argument takes a structure
                                         * with additional, solver dependent
-                                        * flags for tuning.
+                                        * 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.
                                         */
       SolverGMRES (SolverControl        &cn,
                    MPI_Comm             &mpi_communicator = PETSC_COMM_SELF,
-                   const AdditionalData &data = AdditionalData());
+                   const AdditionalData &data = AdditionalData(30));
 
     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.