From ef3e524c309035c766aef2d984747d1643f02cb8 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Tue, 23 Sep 2014 13:17:47 +0200 Subject: [PATCH] Changing nColumns to nRows. --- opm/core/props/pvt/PvtLiveGas.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/core/props/pvt/PvtLiveGas.cpp b/opm/core/props/pvt/PvtLiveGas.cpp index 91dbf812..63446b3c 100644 --- a/opm/core/props/pvt/PvtLiveGas.cpp +++ b/opm/core/props/pvt/PvtLiveGas.cpp @@ -63,8 +63,8 @@ namespace Opm saturated_gas_table_[pvtTableIdx][1] = pvtgTable.getOuterTable()->getGasFormationFactorColumn(); // Bg saturated_gas_table_[pvtTableIdx][2] = pvtgTable.getOuterTable()->getGasViscosityColumn(); // mu_g // The number of the columns - int nColumns = saturated_gas_table_[pvtTableIdx][2].size(); - saturated_gas_table_[pvtTableIdx][3].resize(nColumns); // allocate memory for 1/(Bg*mu_g) + int nRows = saturated_gas_table_[pvtTableIdx][2].size(); + saturated_gas_table_[pvtTableIdx][3].resize(nRows); // allocate memory for 1/(Bg*mu_g) saturated_gas_table_[pvtTableIdx][4] = pvtgTable.getOuterTable()->getOilSolubilityColumn(); // Rv int sz = pvtgTable.getOuterTable()->numRows(); @@ -77,8 +77,8 @@ namespace Opm undersat_gas_tables_[pvtTableIdx][i][0] = undersatTable.getOilSolubilityColumn(); // Rv undersat_gas_tables_[pvtTableIdx][i][1] = undersatTable.getGasFormationFactorColumn(); // Bg undersat_gas_tables_[pvtTableIdx][i][2] = undersatTable.getGasViscosityColumn(); // mu_g - int nColumns = undersat_gas_tables_[pvtTableIdx][i][2].size(); - undersat_gas_tables_[pvtTableIdx][i][3].resize(nColumns); // allocate memory for 1/(Bg*mu_g) + int nRows = undersat_gas_tables_[pvtTableIdx][i][2].size(); + undersat_gas_tables_[pvtTableIdx][i][3].resize(nRows); // allocate memory for 1/(Bg*mu_g) } // Bg -> 1/Bg