mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
Fixes warning about catching polymorphic type by value.
Removed message in amgclbackend was: warning: catching polymorphic type ‘class boost::property_tree::json_parser::json_parser_error’ by value [-Wcatch-value=]
This commit is contained in:
1 parent
932ddcd32d
commit
02bbe995c3
1 file changed
+1
-1
@@ -78,7 +78,7 @@ void amgclSolverBackend<block_size>::initialize(int N_, int nnz_, int dim) {
|
||||
if (file.is_open()) { // if file exists, read parameters from file
|
||||
try {
|
||||
boost::property_tree::read_json(file, prm);
|
||||
} catch (boost::property_tree::json_parser::json_parser_error e) {
|
||||
} catch (boost::property_tree::json_parser::json_parser_error& e) {
|
||||
OPM_THROW(std::logic_error, "Error cannot parse json file '" + filename + "'");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user