Some clean up.

This commit is contained in:
Tor Harald Sandve 2017-11-23 11:15:50 +01:00
parent c076ed6485
commit dd97fc8908
2 changed files with 2 additions and 7 deletions

View File

@ -884,12 +884,7 @@ namespace Opm
// F_solvent is added to F_gas. This means that well_rate[Gas] also contains solvent. // F_solvent is added to F_gas. This means that well_rate[Gas] also contains solvent.
// More testing is needed to make sure this is correct for well groups and THP. // More testing is needed to make sure this is correct for well groups and THP.
if (has_solvent){ if (has_solvent){
const double scal = scalingFactor(contiSolventEqIdx); F_solvent /= scalingFactor(contiSolventEqIdx);
if (scal > 0) {
F_solvent /= scal ;
} else {
F_solvent = 0.;
}
F[pu.phase_pos[Gas]] += F_solvent; F[pu.phase_pos[Gas]] += F_solvent;
} }

View File

@ -280,7 +280,7 @@ namespace Opm
// The pvt region of the well. We assume // The pvt region of the well. We assume
// We assume a well to not penetrate more than one pvt region. // We assume a well to not penetrate more than one pvt region.
int pvtRegionIdx_; const int pvtRegionIdx_;
const std::vector<bool>& active() const; const std::vector<bool>& active() const;