mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixed one use of wells, when wells=NULL
This commit is contained in:
parent
ba4ba17736
commit
5a055ee933
@ -212,7 +212,7 @@ namespace Opm
|
|||||||
// \TODO refactor?
|
// \TODO refactor?
|
||||||
|
|
||||||
const int nc = grid_.number_of_cells;
|
const int nc = grid_.number_of_cells;
|
||||||
const int nw = wells_->number_of_wells;
|
const int nw = (wells_) ? wells_->number_of_wells : 0;
|
||||||
|
|
||||||
// Set up dynamic data.
|
// Set up dynamic data.
|
||||||
computePerSolveDynamicData(dt, state, well_state);
|
computePerSolveDynamicData(dt, state, well_state);
|
||||||
|
Loading…
Reference in New Issue
Block a user