Skip to content
Snippets Groups Projects

pretty print

Merged Christophe Geuzaine requested to merge print-info into master
Files
35
@@ -21,7 +21,7 @@ namespace gmshfem
void eigenvalues(Vector< scalar::ComplexPrecision< T_Scalar > > &eigenvalues, Matrix< T_Scalar > &matrix, const bool symmetric, const unsigned long long numberOfEigenvalues)
{
if(!matrix.isSquare()) {
msg::error << "Cannot computed eigenvalues of non-square matrix" << msg::endl;
msg::error << "Cannot compute eigenvalues of non-square matrix" << msg::endl;
return;
}
try {
@@ -54,7 +54,7 @@ namespace gmshfem
eigenvalues = std::move(eig);
#else
msg::error << "Unable to compute eigenvalues without SLEPc" << msg::endl;
msg::error << "Cannot compute eigenvalues without SLEPc" << msg::endl;
#endif
}
catch(const std::exception &exc) {
@@ -72,11 +72,11 @@ namespace gmshfem
void eigenvalues(Vector< scalar::ComplexPrecision< T_Scalar > > &eigenvalues, Matrix< T_Scalar > &left, Matrix< T_Scalar > &right, const bool symmetric, const unsigned long long numberOfEigenvalues)
{
if(!left.isSquare() || !right.isSquare()) {
msg::error << "Cannot computed eigenvalues of non-square matrix" << msg::endl;
msg::error << "Cannot compute eigenvalues of non-square matrix" << msg::endl;
return;
}
if(left.size(0) != right.size(0) || left.size(1) != right.size(1)) {
msg::error << "Left and right marices are not of the same size" << msg::endl;
msg::error << "Left and right matrices are not of the same size" << msg::endl;
return;
}
try {
@@ -109,7 +109,7 @@ namespace gmshfem
eigenvalues = std::move(eig);
#else
msg::error << "Unable to compute eigenvalues without SLEPc" << msg::endl;
msg::error << "Cannot compute eigenvalues without SLEPc" << msg::endl;
#endif
}
catch(const std::exception &exc) {
@@ -154,7 +154,7 @@ namespace gmshfem
singularValues = std::move(sigma);
#else
msg::error << "Unable to compute singular values without SLEPc" << msg::endl;
msg::error << "Cannot compute singular values without SLEPc" << msg::endl;
#endif
}
catch(const std::exception &exc) {
Loading