mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -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?
|
||||
|
||||
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.
|
||||
computePerSolveDynamicData(dt, state, well_state);
|
||||
|
Loading…
Reference in New Issue
Block a user