mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: do no assert for user provided data
instead throw an exception
This commit is contained in:
parent
a2bd8b5810
commit
1556169221
@ -599,7 +599,10 @@ init_(const UnitSystem& unitSystem)
|
||||
"Unsupported time step control selected " + control);
|
||||
|
||||
// make sure growth factor is something reasonable
|
||||
assert(growthFactor_ >= 1.0);
|
||||
if (growthFactor_ < 1.0) {
|
||||
OPM_THROW(std::runtime_error,
|
||||
"Growth factor cannot be less than 1.");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Opm
|
||||
|
Loading…
Reference in New Issue
Block a user