From bc69f8f8b13484bb7776b60bc73aa52b89d5e246 Mon Sep 17 00:00:00 2001 From: young Date: Thu, 3 Oct 2013 14:00:24 +0000 Subject: [PATCH] A rather long but sensible error message in slepc solver in case of complex type (advanced API useage). git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31086 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/slepc_solver.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deal.II/source/lac/slepc_solver.cc b/deal.II/source/lac/slepc_solver.cc index 4948083bec..11fdd12258 100644 --- a/deal.II/source/lac/slepc_solver.cc +++ b/deal.II/source/lac/slepc_solver.cc @@ -248,7 +248,7 @@ namespace SLEPcWrappers PETScWrappers::VectorBase &real_eigenvectors, PETScWrappers::VectorBase &imag_eigenvectors) { - // This function makes no sense if SLEPc was compiled with + // This function is not going to work if SLEPc was compiled with // --scaler-type=complex. #ifndef PETSC_USE_COMPLEX @@ -262,7 +262,15 @@ namespace SLEPcWrappers #else Assert ((false), ExcMessage ("Your PETSc/SLEPc installation was configured with scalar-type complex " - "but this function is not defined for complex types.")); + "but this function is not defined for complex types. Instead use the " + "usual function: " + " " + "void " + " SolverBase::get_eigenpair (const unsigned int index, " + " PetscScalar &eigenvalues, " + " PETScWrappers::VectorBase &eigenvectors)" + " " + "where your eigenvectos are scalar-type=complex: ")); #endif } -- 2.39.5