From: wolf Date: Mon, 8 Mar 2004 15:49:31 +0000 (+0000) Subject: Work around nasty problems with gcc 2.95. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5df1cfd66d7e77b4d0e8edbcdbfad575e82eea20;p=dealii-svn.git Work around nasty problems with gcc 2.95. git-svn-id: https://svn.dealii.org/trunk@8675 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/petsc_precondition.h b/deal.II/lac/include/lac/petsc_precondition.h index e6f84de8d5..d591e618b7 100644 --- a/deal.II/lac/include/lac/petsc_precondition.h +++ b/deal.II/lac/include/lac/petsc_precondition.h @@ -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: /** diff --git a/deal.II/lac/include/lac/petsc_solver.h b/deal.II/lac/include/lac/petsc_solver.h index 378e6e8a15..1923007f4d 100644 --- a/deal.II/lac/include/lac/petsc_solver.h +++ b/deal.II/lac/include/lac/petsc_solver.h @@ -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: /**