Write correct THRESHPR values also from a restart.

This commit is contained in:
Vegard Kippe 2024-11-28 14:44:53 +01:00
parent 4097a3c663
commit 2b4e09bc51

View File

@ -227,6 +227,12 @@ getRestartVector() const
return {};
std::vector<Scalar> result(numEquilRegions_ * numEquilRegions_, 0.0);
if (this->restart_) {
result = this->thpres_;
return result;
}
const auto& simConfig = eclState_.getSimulationConfig();
const auto& thpres = simConfig.getThresholdPressure();