From: Wolfgang Bangerth Date: Sun, 9 Sep 2007 00:17:44 +0000 (+0000) Subject: Remove workarounds for gcc2.95 X-Git-Tag: v8.0.0~9886 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff84bb82cc09ef7f483e63a12ddb7178b85992a2;p=dealii.git Remove workarounds for gcc2.95 git-svn-id: https://svn.dealii.org/trunk@15172 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 f8a77a4b6f..25c8b35f74 100644 --- a/deal.II/lac/include/lac/petsc_precondition.h +++ b/deal.II/lac/include/lac/petsc_precondition.h @@ -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: /** diff --git a/deal.II/lac/include/lac/petsc_solver.h b/deal.II/lac/include/lac/petsc_solver.h index 5725572346..03ec10e52f 100644 --- a/deal.II/lac/include/lac/petsc_solver.h +++ b/deal.II/lac/include/lac/petsc_solver.h @@ -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: /**