Skip to content

Commit

Permalink
fix: number of tables should be based on NTPVT
Browse files Browse the repository at this point in the history
  • Loading branch information
plgbrts committed Dec 2, 2021
1 parent 3ead0f4 commit 10f11f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/opm/parser/eclipse/EclipseState/Tables/TableManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ DensityTable make_density_table(const GravityTable& gravity) {

addTables( "OILVISCT", m_tabdims.getNumPVTTables());
addTables( "WATVISCT", m_tabdims.getNumPVTTables());
addTables( "GASVISCT", m_tabdims.getNumPVTTables());

addTables( "PLYMAX", m_regdims.getNPLMIX());
addTables( "RSVD", m_eqldims.getNumEquilRegions());
Expand All @@ -442,7 +443,7 @@ DensityTable make_density_table(const GravityTable& gravity) {
addTables( "PDVD", m_eqldims.getNumEquilRegions());
addTables( "SALTVD", m_eqldims.getNumEquilRegions());
addTables( "SALTPVD", m_eqldims.getNumEquilRegions());
addTables( "SALTSOL", m_eqldims.getNumEquilRegions());
addTables( "SALTSOL", m_tabdims.getNumPVTTables());
addTables( "PERMFACT", m_eqldims.getNumEquilRegions());

addTables( "AQUTAB", m_aqudims.getNumInfluenceTablesCT());
Expand Down Expand Up @@ -508,7 +509,7 @@ DensityTable make_density_table(const GravityTable& gravity) {
initSimpleTableContainer<PdvdTable>(deck, "PDVD" , m_eqldims.getNumEquilRegions());
initSimpleTableContainer<SaltpvdTable>(deck, "SALTPVD" , m_eqldims.getNumEquilRegions());
initSimpleTableContainer<SaltvdTable>(deck, "SALTVD" , m_eqldims.getNumEquilRegions());
initSimpleTableContainer<SaltsolTable>(deck, "SALTSOL" , m_eqldims.getNumEquilRegions());
initSimpleTableContainer<SaltsolTable>(deck, "SALTSOL" , m_tabdims.getNumPVTTables());
initSimpleTableContainer<SaltvdTable>(deck, "PERMFACT" , m_eqldims.getNumEquilRegions());
initSimpleTableContainer<AqutabTable>(deck, "AQUTAB" , m_aqudims.getNumInfluenceTablesCT());
{
Expand Down

0 comments on commit 10f11f9

Please sign in to comment.