Fixed Bg versus 1/Bg issue.
This commit is contained in:
parent
14e271f049
commit
782a5934c9
@ -34,6 +34,7 @@
|
||||
#include <opm/core/utility/linearInterpolation.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
@ -101,6 +102,14 @@ namespace Opm
|
||||
undersat_gas_tables_[i][1] = undersatTable.getGasFormationFactorColumn();
|
||||
undersat_gas_tables_[i][2] = pvtgTable.getOuterTable()->getGasViscosityColumn();
|
||||
}
|
||||
|
||||
// Bg -> 1/Bg
|
||||
for (int i=0; i<sz; ++i) {
|
||||
saturated_gas_table_[1][i] = 1.0/saturated_gas_table_[1][i];
|
||||
for (int j=0; j<undersat_gas_tables_[i][1].size(); ++j) {
|
||||
undersat_gas_tables_[i][1][j] = 1.0/undersat_gas_tables_[i][1][j];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Destructor
|
||||
|
Loading…
Reference in New Issue
Block a user