]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
C++ says that default arguments can only be attached to a declaration of a
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 31 Mar 2013 23:16:38 +0000 (23:16 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 31 Mar 2013 23:16:38 +0000 (23:16 +0000)
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

index 1f955323813880c5a39885ac71cdff9411f749aa..5554e5ffe61c24661e3053ebdf6371997af57ec6 100644 (file)
@@ -143,7 +143,7 @@ namespace SLEPcWrappers
     solve (const PETScWrappers::MatrixBase &A,
            std::vector<double>             &kr,
            std::vector<OutputVector>       &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<double>             &kr,
            std::vector<OutputVector>       &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<double>             &kr,
                      std::vector<OutputVector>       &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<double>             &kr,
                      std::vector<OutputVector>       &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  ---------------------------*/
-

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.