mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use std::pair<bool, double> for initial aquifer pressure
This commit is contained in:
@@ -212,10 +212,10 @@ protected:
|
||||
|
||||
int pvttableIdx = aquct_data_.pvttableID - 1;
|
||||
Base::rhow_.resize(Base::cell_idx_.size(), 0.);
|
||||
if (!aquct_data_.p0) {
|
||||
if (!aquct_data_.p0.first) {
|
||||
Base::pa0_ = calculateReservoirEquilibrium();
|
||||
} else {
|
||||
Base::pa0_ = *(aquct_data_.p0);
|
||||
Base::pa0_ = aquct_data_.p0.second;
|
||||
}
|
||||
|
||||
// use the thermodynamic state of the first active cell as a
|
||||
|
||||
@@ -207,10 +207,10 @@ protected:
|
||||
return;
|
||||
}
|
||||
|
||||
if (!aqufetp_data_.p0) {
|
||||
if (!aqufetp_data_.p0.first) {
|
||||
Base::pa0_ = calculateReservoirEquilibrium();
|
||||
} else {
|
||||
Base::pa0_ = *(aqufetp_data_.p0);
|
||||
Base::pa0_ = aqufetp_data_.p0.second;
|
||||
}
|
||||
aquifer_pressure_ = Base::pa0_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user