mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
convert THROW to OPM_THROW
This commit is contained in:
parent
43438b2bf8
commit
f4a22486ef
@ -75,7 +75,7 @@ namespace Opm
|
||||
if (current_step_ < 0 || current_step_ > int(timesteps_.size())) {
|
||||
// Note that we do allow current_step_ == timesteps_.size(),
|
||||
// that is the done() state.
|
||||
THROW("Trying to set invalid step number: " << step);
|
||||
OPM_THROW(std::runtime_error, "Trying to set invalid step number: " << step);
|
||||
}
|
||||
current_step_ = step;
|
||||
current_time_ = std::accumulate(timesteps_.begin(), timesteps_.begin() + step, 0.0);
|
||||
|
Loading…
Reference in New Issue
Block a user