From 5a055ee933620ec5f97a72edc73f24eec7b47a99 Mon Sep 17 00:00:00 2001 From: "Halvor M. Nilsen" Date: Thu, 14 Jun 2012 09:06:58 +0200 Subject: [PATCH] Fixed one use of wells, when wells=NULL --- opm/core/pressure/IncompTpfa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/pressure/IncompTpfa.cpp b/opm/core/pressure/IncompTpfa.cpp index 62a30b6a8..8a45556fe 100644 --- a/opm/core/pressure/IncompTpfa.cpp +++ b/opm/core/pressure/IncompTpfa.cpp @@ -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);