fixed: don't throw a bare string

and use OPM_THROW
This commit is contained in:
Arne Morten Kvarving 2024-04-17 10:36:13 +02:00
parent 99f45ae916
commit a3f554e4fb

View File

@ -483,7 +483,8 @@ actionOnBrokenConstraints(const Group& group,
break;
}
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)