diff --git a/dune/microstructure/prestrainedMaterial.hh b/dune/microstructure/prestrainedMaterial.hh index 83e685b18669281591a89fd3d64b9d3bff9e0efb..16e43bff33a63940e9cd500300c8405e5410a7df 100644 --- a/dune/microstructure/prestrainedMaterial.hh +++ b/dune/microstructure/prestrainedMaterial.hh @@ -265,7 +265,7 @@ Func2Tensor setupPrestrainPhase(Python::Module module, int phase){ module.get("phase" + std::to_string(phase) + "_axis").toC<int>(axis); module.get("phase" + std::to_string(phase) + "_angle").toC<double>(angle); } - catch(Dune::Exception) + catch(Dune::Exception&) { //default frame is used. } @@ -329,7 +329,7 @@ Dune::FieldMatrix<double,6,6> setupPhase(Python::Module module, int phase) module.get("phase" + std::to_string(phase) + "_axis").toC<int>(axis); module.get("phase" + std::to_string(phase) + "_angle").toC<double>(angle); } - catch(Dune::Exception) + catch(Dune::Exception& e) { // std::cout << "(Could not read frame vectors for material phase) " << phase << ": - Canonical Frame (default) is used." << std::endl; std::cout << "(Could not read rotation axis & angle for material phase) " << phase << ": - Canonical Frame (default) is used." << std::endl;