Fixed one use of wells, when wells=NULL
This commit is contained in:
parent
5398ae169e
commit
1a95fe8199
@ -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