]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
A rather long but sensible error message in slepc solver in case of complex type...
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Oct 2013 14:00:24 +0000 (14:00 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Oct 2013 14:00:24 +0000 (14:00 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31086 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/slepc_solver.cc

index 4948083becef3c1354697de18a5401322239adc6..11fdd122582b0f4f1f39bfa1a924976d1aed7326 100644 (file)
@@ -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
   }
 

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.