Skip to content
Snippets Groups Projects
Unverified Commit 6c9a3d51 authored by René Fritze's avatar René Fritze
Browse files

[martix-inverter] fix string literal comparison error

parent 4ec23d05
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ public: ...@@ -86,7 +86,7 @@ public:
try { try {
inverse_->invert(); inverse_->invert();
} catch (const FMatrixError& ee) { } catch (const FMatrixError& ee) {
if (ee.what() == "matrix is singular") if (std::strcmp(ee.what(), "matrix is singular") != 0)
DUNE_THROW(Exceptions::matrix_invert_failed_bc_data_did_not_fulfill_requirements, DUNE_THROW(Exceptions::matrix_invert_failed_bc_data_did_not_fulfill_requirements,
"This was the original error:\n\n" "This was the original error:\n\n"
<< ee.what()); << ee.what());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment