mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: don't throw a bare string
and use OPM_THROW
This commit is contained in:
parent
99f45ae916
commit
a3f554e4fb
@ -483,7 +483,8 @@ actionOnBrokenConstraints(const Group& group,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
throw("Invalid procedure for maximum rate limit selected for group" + group.name());
|
OPM_THROW(std::runtime_error,
|
||||||
|
"Invalid procedure for maximum rate limit selected for group" + group.name());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ss.empty() && wellModel_.comm().rank() == 0)
|
if (!ss.empty() && wellModel_.comm().rank() == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user