Merge pull request #501 from goncalvesmachadoc/patch-4

[Release 2022.04] Fix bug WATDENT
This commit is contained in:
Markus Blatt
2022-04-19 11:02:30 +02:00
committed by GitHub

View File

@@ -138,6 +138,14 @@ public:
watdentCT1_[regionIdx] = record.C1;
watdentCT2_[regionIdx] = record.C2;
}
const auto& pvtwTables = tables.getPvtwTable();
assert(pvtwTables.size() == numRegions);
for (unsigned regionIdx = 0; regionIdx < numRegions; ++ regionIdx) {
pvtwRefPress_[regionIdx] = pvtwTables[regionIdx].reference_pressure;
pvtwRefB_[regionIdx] = pvtwTables[regionIdx].volume_factor;
}
}
if (enableThermalViscosity_) {