Merge pull request #3663 from blattms/remove-warn-opencl

Fixes warning about catching polymorphic type by value.
This commit is contained in:
Bård Skaflestad 2021-11-03 18:30:57 +01:00 committed by GitHub
commit 869de90b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 + "'");
}