Stop report early if there are no wells

This commit is contained in:
Jørgen Kvalsvik
2016-09-28 10:22:03 +02:00
parent 6ba21fd4c0
commit dfb7f8ff63

View File

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