From: young Date: Sun, 20 Oct 2013 23:13:20 +0000 (+0000) Subject: Attach SLEPc solver patch to trunk. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27e943fb6e51c1c7a169ea8e7be343a39e135988;p=dealii-svn.git Attach SLEPc solver patch to trunk. git-svn-id: https://svn.dealii.org/trunk@31362 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 184164369d..2ce90aa9fb 100644 --- a/deal.II/include/deal.II/lac/slepc_solver.h +++ b/deal.II/include/deal.II/lac/slepc_solver.h @@ -86,7 +86,7 @@ DEAL_II_NAMESPACE_OPEN void SolverBase::solve (const PETScWrappers::MatrixBase &A, const PETScWrappers::MatrixBase &B, - std::vector &eigenvalues, + std::vector &eigenvalues, std::vector &eigenvectors, const unsigned int n_eigenpairs) { ... } @@ -154,7 +154,7 @@ namespace SLEPcWrappers template void solve (const PETScWrappers::MatrixBase &A, - std::vector &eigenvalues, + std::vector &eigenvalues, std::vector &eigenvectors, const unsigned int n_eigenpairs = 1); @@ -167,7 +167,7 @@ namespace SLEPcWrappers void solve (const PETScWrappers::MatrixBase &A, const PETScWrappers::MatrixBase &B, - std::vector &eigenvalues, + std::vector &eigenvalues, std::vector &eigenvectors, const unsigned int n_eigenpairs = 1); @@ -204,7 +204,7 @@ namespace SLEPcWrappers * default, no target is set. */ void - set_target_eigenvalue (const double &this_target); + set_target_eigenvalue (const PetscScalar &this_target); /** * Indicate which part of the spectrum is to be computed. By @@ -748,7 +748,7 @@ namespace SLEPcWrappers template void SolverBase::solve (const PETScWrappers::MatrixBase &A, - std::vector &eigenvalues, + std::vector &eigenvalues, std::vector &eigenvectors, const unsigned int n_eigenpairs) { @@ -780,7 +780,7 @@ namespace SLEPcWrappers void SolverBase::solve (const PETScWrappers::MatrixBase &A, const PETScWrappers::MatrixBase &B, - std::vector &eigenvalues, + std::vector &eigenvalues, std::vector &eigenvectors, const unsigned int n_eigenpairs) { diff --git a/deal.II/source/lac/slepc_solver.cc b/deal.II/source/lac/slepc_solver.cc index 9f9ad41595..3fd24cd777 100644 --- a/deal.II/source/lac/slepc_solver.cc +++ b/deal.II/source/lac/slepc_solver.cc @@ -92,7 +92,7 @@ namespace SLEPcWrappers } void - SolverBase::set_target_eigenvalue (const double &this_target) + SolverBase::set_target_eigenvalue (const PetscScalar &this_target) { target_eigenvalue = this_target; }