mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 09:40:59 -06:00
Some clean up.
This commit is contained in:
parent
c076ed6485
commit
dd97fc8908
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user