Stop report early if there are no wells

This commit is contained in:
Jørgen Kvalsvik committed 2016-10-19 12:06:46 +02:00
1 parent 6ba21fd4c0
commit dfb7f8ff63
1 file changed
+3 -1
@@ -196,7 +196,9 @@ namespace Opm
data::Wells res = WellState::report(pu);
const int nw = this->numWells();
const int np = nw ? this->numPhases() : -1;
if( nw == 0 ) return res;
const int np = this->numPhases();
using rt = data::Rates::opt;
std::vector< rt > phs( np );