mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
Add trivial connection output to silence the output code
In this PR only trivial data is added.
This commit is contained in:
parent
3b8ef5f004
commit
22097d4c10
@ -718,6 +718,10 @@ public:
|
||||
refDepth_ = dofPos[2];
|
||||
}
|
||||
|
||||
int numConnections() const {
|
||||
return dofVariables_.size();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Finalize the specification of the borehole.
|
||||
*/
|
||||
|
@ -555,6 +555,19 @@ public:
|
||||
wellOut.rates.set( rt::wat, ebosWell->surfaceRate(waterPhaseIdx) );
|
||||
wellOut.rates.set( rt::oil, ebosWell->surfaceRate(oilPhaseIdx) );
|
||||
wellOut.rates.set( rt::gas, ebosWell->surfaceRate(gasPhaseIdx) );
|
||||
|
||||
const int numConnections = ebosWell->numConnections();
|
||||
wellOut.connections.resize(numConnections);
|
||||
|
||||
for( int i = 0; i < numConnections; ++i ) {
|
||||
auto& connection = wellOut.connections[ i ];
|
||||
connection.index = 0;
|
||||
connection.pressure = 0.0;
|
||||
connection.reservoir_rate = 0.0;
|
||||
connection.rates.set( rt::wat, 0.0 );
|
||||
connection.rates.set( rt::oil, 0.0 );
|
||||
connection.rates.set( rt::gas, 0.0 );
|
||||
}
|
||||
}
|
||||
|
||||
return wellDat;
|
||||
|
Loading…
Reference in New Issue
Block a user