Skip to content
Snippets Groups Projects
Commit d59be62f authored by Christian Engwer's avatar Christian Engwer
Browse files

Merge branch 'feature/catch-by-ref' into 'master'

Catch polymorphic type ISTLError by reference

See merge request !581
parents d32dd75c 565753e8
No related branches found
No related tags found
1 merge request!581Catch polymorphic type ISTLError by reference
Pipeline #73511 passed
......@@ -36,7 +36,7 @@ bool areSame(BCRSMat A, BCRSMat B)
std::ignore /*entryA*/ = (*colIt)[k][l];
try {
std::ignore /*entryB*/ = B[rowIt.index()][colIt.index()][k][l];
} catch (Dune::ISTLError e) {
} catch (Dune::ISTLError& e) {
return false; // If the entry B[rowIt.index()][colIt.index()][k][l] does not exist, then the matrices are not the same.
}
if (std::abs((*colIt)[k][l]) > 1e-7 and std::abs(B[rowIt.index()][colIt.index()][k][l]) > 1e-7
......
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