Fixed one use of wells, when wells=NULL

This commit is contained in:
Halvor M. Nilsen 2012-06-14 09:06:58 +02:00
parent ba4ba17736
commit 5a055ee933

View File

@ -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);