mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Stop report early if there are no wells
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user