From: bangerth Date: Sun, 31 Mar 2013 23:16:38 +0000 (+0000) Subject: C++ says that default arguments can only be attached to a declaration of a X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775fe1c5c81c9653aefc3a7c6d60a6f981e5ab28;p=dealii-svn.git 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 --- 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 ---------------------------*/ -