mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -06:00
variableState: Use pre-computed list of "all cells"
Class FullyImplicitBlackoilSolver<Grid> already features a list of "all" cells, built at object construction time. There's no need to re-compute that list on every call to variableState() (when Gas is active).
This commit is contained in:
parent
f69530a7d4
commit
eccc5c9694
@ -530,9 +530,8 @@ namespace {
|
||||
|
||||
if (active_[ Gas]) {
|
||||
// Define Sg Rs and Rv in terms of xvar.
|
||||
std::vector<int> all_cells = buildAllCells(nc);
|
||||
ADB rsSat = fluidRsSat(state.pressure,all_cells);
|
||||
ADB rvSat = fluidRvSat(state.pressure,all_cells);
|
||||
ADB rsSat = fluidRsSat(state.pressure, cells_);
|
||||
ADB rvSat = fluidRvSat(state.pressure, cells_);
|
||||
ADB xvar = vars[ nextvar++ ];
|
||||
ADB sg = isSg*xvar + isRv* so;
|
||||
state.saturation[ pu.phase_pos[ Gas ] ] = sg;
|
||||
|
Loading…
Reference in New Issue
Block a user