black oil fluid system: don't use the numerical value for the surface pressure directly

this is just a minor clean up which does not change anything...
This commit is contained in:
Andreas Lauser
2014-07-25 15:04:26 +02:00
parent e2f5670a4e
commit cc79c93184

View File

@@ -390,9 +390,8 @@ public:
// water is simple: 18 g/mol
molarMass_[waterCompIdx] = 18e-3;
// for gas, we take the density at standard pressure and
// temperature and assume it to be ideal
Scalar p = 1.0135e5;
// for gas, we take the density at standard conditions and assume it to be ideal
Scalar p = surfacePressure_;
Scalar rho_g = surfaceDensity_[gasPhaseIdx];
Scalar T = 297.15;
molarMass_[gasCompIdx] = Opm::Constants<Scalar>::R*T*rho_g / p;