From: bangerth Date: Mon, 23 May 2011 18:21:21 +0000 (+0000) Subject: Fail also in optimized mode if umfpack wasn't configured, rather than silently X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4624bbdae5865e6d1a2a950bce03c4090a42fa3;p=dealii-svn.git Fail also in optimized mode if umfpack wasn't configured, rather than silently producing wrong results. I've seen several people run into this already now... git-svn-id: https://svn.dealii.org/trunk@23740 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/sparse_direct.cc b/deal.II/source/lac/sparse_direct.cc index b7d897d134..b003870bf4 100644 --- a/deal.II/source/lac/sparse_direct.cc +++ b/deal.II/source/lac/sparse_direct.cc @@ -1840,14 +1840,14 @@ SparseDirectUMFPACK::clear () template void SparseDirectUMFPACK::factorize (const Matrix &) { - Assert(false, ExcNeedsUMFPACK()); + AssertThrow(false, ExcNeedsUMFPACK()); } void SparseDirectUMFPACK::solve (Vector &) const { - Assert(false, ExcNeedsUMFPACK()); + AssertThrow(false, ExcNeedsUMFPACK()); } @@ -1856,7 +1856,7 @@ void SparseDirectUMFPACK::solve (const Matrix &, Vector &) { - Assert(false, ExcNeedsUMFPACK()); + AssertThrow(false, ExcNeedsUMFPACK()); }