From 237cc900480ee2c410ef907213d68ba613475eb0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 31 Mar 2013 23:16:38 +0000 Subject: [PATCH] C++ says that default arguments can only be attached to a declaration of a template, not a definition. Fix this. It also helps the documentation generation. git-svn-id: https://svn.dealii.org/trunk@29131 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/slepc_solver.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deal.II/include/deal.II/lac/slepc_solver.h b/deal.II/include/deal.II/lac/slepc_solver.h index 1f95532381..5554e5ffe6 100644 --- a/deal.II/include/deal.II/lac/slepc_solver.h +++ b/deal.II/include/deal.II/lac/slepc_solver.h @@ -143,7 +143,7 @@ namespace SLEPcWrappers solve (const PETScWrappers::MatrixBase &A, std::vector &kr, std::vector &vr, - const unsigned int n_eigenvectors); + const unsigned int n_eigenvectors = 1); /** * Same as above, but here a composite method for solving the @@ -155,7 +155,7 @@ namespace SLEPcWrappers const PETScWrappers::MatrixBase &B, std::vector &kr, std::vector &vr, - const unsigned int n_eigenvectors); + const unsigned int n_eigenvectors = 1); /** * Initialize solver for the linear system $Ax=\lambda x$. (Note: @@ -654,7 +654,7 @@ namespace SLEPcWrappers SolverBase::solve (const PETScWrappers::MatrixBase &A, std::vector &kr, std::vector &vr, - const unsigned int n_eigenvectors = 1) + const unsigned int n_eigenvectors) { // Panic if no eigenpairs are wanted. AssertThrow (n_eigenvectors != 0, ExcSLEPcWrappersUsageError()); @@ -686,7 +686,7 @@ namespace SLEPcWrappers const PETScWrappers::MatrixBase &B, std::vector &kr, std::vector &vr, - const unsigned int n_eigenvectors = 1) + const unsigned int n_eigenvectors) { // Panic if no eigenpairs are wanted. AssertThrow (n_eigenvectors != 0, ExcSLEPcWrappersUsageError()); @@ -723,4 +723,3 @@ DEAL_II_NAMESPACE_CLOSE #endif /*---------------------------- slepc_solver.h ---------------------------*/ - -- 2.39.5