From 2d0aeb634e38bab7dd6901b3d5b5ca11b0dd0a92 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 6 Jul 2022 21:10:41 -0500 Subject: [PATCH] Improve error message by providing a clickable link --- include/deal.II/lac/lapack_support.h | 13 ++++++------- source/lac/sparse_direct.cc | 18 +++++++++--------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/include/deal.II/lac/lapack_support.h b/include/deal.II/lac/lapack_support.h index f663f1cc0a..9bd25f9c87 100644 --- a/include/deal.II/lac/lapack_support.h +++ b/include/deal.II/lac/lapack_support.h @@ -220,13 +220,12 @@ namespace LAPACKSupport DeclException1( ExcMissing, std::string, - << "When you ran 'cmake' during installation of deal.II, " - << "no suitable installation of the BLAS or LAPACK library could " - << "be found. Consequently, the function <" << arg1 - << "> can not be called. Refer to the doc/readme.html " - << "file for information on how to ensure that deal.II " - << "picks up an existing BLAS and LAPACK installation at " - << "configuration time."); + << "When you ran 'cmake' during installation of deal.II, no suitable " + << "installation of the BLAS or LAPACK library could be found. " + << "Consequently, the function <" << arg1 << "> can not be called. " + << "Refer to the readme at https://dealii.org/current/readme.html for " + << "information on how to ensure that deal.II picks up an existing " + << "BLAS and LAPACK installation at configuration time."); } // namespace LAPACKSupport diff --git a/source/lac/sparse_direct.cc b/source/lac/sparse_direct.cc index 3951c64a3f..1e2dabc2d7 100644 --- a/source/lac/sparse_direct.cc +++ b/source/lac/sparse_direct.cc @@ -666,7 +666,7 @@ SparseDirectUMFPACK::factorize(const Matrix &) ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -678,7 +678,7 @@ SparseDirectUMFPACK::solve(Vector &, const bool) const ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -691,7 +691,7 @@ SparseDirectUMFPACK::solve(Vector> &, const bool) const ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -704,7 +704,7 @@ SparseDirectUMFPACK::solve(BlockVector &, const bool) const ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -718,7 +718,7 @@ SparseDirectUMFPACK::solve(BlockVector> &, ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -732,7 +732,7 @@ SparseDirectUMFPACK::solve(const Matrix &, Vector &, const bool) ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -748,7 +748,7 @@ SparseDirectUMFPACK::solve(const Matrix &, ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -762,7 +762,7 @@ SparseDirectUMFPACK::solve(const Matrix &, BlockVector &, const bool) ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } @@ -778,7 +778,7 @@ SparseDirectUMFPACK::solve(const Matrix &, ExcMessage( "To call this function you need UMFPACK, but you configured deal.II " "without passing the necessary switch to 'cmake'. Please consult the " - "installation instructions in doc/readme.html.")); + "installation instructions at https://dealii.org/current/readme.html")); } #endif -- 2.39.5