diff --git a/dumux/material/constraintsolvers/immiscibleflash.hh b/dumux/material/constraintsolvers/immiscibleflash.hh index 462bcf9e2a388dc2b0108cf07b2d8ba7a8f81d71..ff4a71dd4efd043138a86aa797cd2abe98bb1d05 100644 --- a/dumux/material/constraintsolvers/immiscibleflash.hh +++ b/dumux/material/constraintsolvers/immiscibleflash.hh @@ -179,7 +179,7 @@ public: deltaX = 0; try { J.solve(deltaX, b); } - catch (Dune::FMatrixError e) + catch (Dune::FMatrixError& e) { /* std::cout << "error: " << e << "\n"; diff --git a/test/discretization/cellcentered/tpfa/test_tpfafvgeometry_nonconforming.cc b/test/discretization/cellcentered/tpfa/test_tpfafvgeometry_nonconforming.cc index 22ca518d5972d8e4b30abd3a60cf4be650de4b8b..35334ae7061ad15206a26c907750843b05f72676 100644 --- a/test/discretization/cellcentered/tpfa/test_tpfafvgeometry_nonconforming.cc +++ b/test/discretization/cellcentered/tpfa/test_tpfafvgeometry_nonconforming.cc @@ -382,7 +382,7 @@ int main (int argc, char *argv[]) try // ////////////////////////////////// // Error handler // ///////////////////////////////// -catch (Dune::Exception e) { +catch (Dune::Exception& e) { std::cout << e << std::endl; return 1; diff --git a/test/discretization/staggered/test_staggeredfvgeometry.cc b/test/discretization/staggered/test_staggeredfvgeometry.cc index 8140c0f1069531306fecbd543988475443805676..d3d45349e8bac2efb59c80a166d11b4253ac3793 100644 --- a/test/discretization/staggered/test_staggeredfvgeometry.cc +++ b/test/discretization/staggered/test_staggeredfvgeometry.cc @@ -144,7 +144,7 @@ int main (int argc, char *argv[]) try // ////////////////////////////////// // Error handler // ///////////////////////////////// -catch (Dune::Exception e) { +catch (Dune::Exception& e) { std::cout << e << std::endl; return 1; diff --git a/test/material/fluidsystems/checkfluidsystem.hh b/test/material/fluidsystems/checkfluidsystem.hh index d2c1428bd856478a20b565cdb2c2747c0d6ae5f1..dff2e241e41f8c1050c20b479608190050254215 100644 --- a/test/material/fluidsystems/checkfluidsystem.hh +++ b/test/material/fluidsystems/checkfluidsystem.hh @@ -526,14 +526,14 @@ int checkFluidSystem() try { val = FluidSystem::density(fs, paramCache, phaseIdx); - } catch (Dune::Exception e) + } catch (Dune::Exception& e) { collectedErrors += "error: FluidSystem::density() throws exception!\n"; } try { val = FluidSystem::molarDensity(fs, paramCache, phaseIdx); - } catch (Dune::Exception e) + } catch (Dune::Exception& e) { collectedErrors += "error: FluidSystem::molarDensity() throws exception!\n"; } @@ -549,7 +549,7 @@ int checkFluidSystem() try { val = FluidSystem::enthalpy(fs, paramCache, phaseIdx); - } catch (Dune::NotImplemented) + } catch (Dune::NotImplemented&) { collectedWarnings += "warning: FluidSystem::enthalpy() is not implemented\n"; } catch (...) @@ -594,10 +594,10 @@ int checkFluidSystem() try { val = FluidSystem::diffusionCoefficient(fs, paramCache, phaseIdx, compIdx); - } catch (Dune::NotImplemented) + } catch (Dune::NotImplemented&) { collectedWarnings += "warning: FluidSystem::diffusionCoefficient() is not implemented\n"; - } catch (Dune::InvalidStateException) + } catch (Dune::InvalidStateException&) { collectedWarnings += "warning: FluidSystem::diffusionCoefficient() gives invalid state exception\n"; } catch (...) diff --git a/test/multidomain/facet/test_facetcouplingmapper.cc b/test/multidomain/facet/test_facetcouplingmapper.cc index 326485146f8dc8ec5694be08890ae56f73af11eb..b060f6fe31977340210976306fb7fd803e3c2857 100644 --- a/test/multidomain/facet/test_facetcouplingmapper.cc +++ b/test/multidomain/facet/test_facetcouplingmapper.cc @@ -311,7 +311,7 @@ int main (int argc, char *argv[]) try //////////////////////////////////// // Error handler //////////////////////////////////// -catch (Dune::Exception e) { +catch (Dune::Exception& e) { std::cout << e << std::endl; return 1; } diff --git a/test/multidomain/facet/test_facetcouplingmapper_boundary.cc b/test/multidomain/facet/test_facetcouplingmapper_boundary.cc index 7985e72e5163cac66234bc62bec5ce8e888cbc33..79c0aa8ce73bbd79f5c99285789f790d5986e41b 100644 --- a/test/multidomain/facet/test_facetcouplingmapper_boundary.cc +++ b/test/multidomain/facet/test_facetcouplingmapper_boundary.cc @@ -133,7 +133,7 @@ int main (int argc, char *argv[]) try // ////////////////////////////////// // Error handler // ///////////////////////////////// -catch (Dune::Exception e) { +catch (Dune::Exception& e) { std::cout << e << std::endl; return 1; } diff --git a/test/multidomain/facet/test_gridmanager.cc b/test/multidomain/facet/test_gridmanager.cc index 877cfcd76f4bd92c2e7bd5013133c08c5e3075e7..dc6facc0696f22e7163356fea0d8fc3affcb4d1c 100644 --- a/test/multidomain/facet/test_gridmanager.cc +++ b/test/multidomain/facet/test_gridmanager.cc @@ -277,7 +277,7 @@ int main (int argc, char *argv[]) try // ////////////////////////////////// // Error handler // ///////////////////////////////// -catch (Dune::Exception e) { +catch (Dune::Exception& e) { std::cout << e << std::endl; return 1; } diff --git a/test/multidomain/facet/test_vertexmapper.cc b/test/multidomain/facet/test_vertexmapper.cc index dd4ad1ce5afb73f2061b4c83730dd3b70533aa61..cd889b6c1faf432e85116cb3b901d85dc8ae7e6d 100644 --- a/test/multidomain/facet/test_vertexmapper.cc +++ b/test/multidomain/facet/test_vertexmapper.cc @@ -170,7 +170,7 @@ int main (int argc, char *argv[]) try // ////////////////////////////////// // Error handler // ///////////////////////////////// -catch (Dune::Exception e) +catch (Dune::Exception& e) { std::cout << e << std::endl; return 1;