mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
Stop report early if there are no wells
This commit is contained in:
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 );
|
||||
|
||||
Reference in new issue
Block a user