mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Gather well controll, too.
This commit is contained in:
@@ -522,6 +522,10 @@ namespace Opm
|
||||
const int wellRateIdx = wellIdx * localWellState_.numPhases();
|
||||
for( int np=0; np<localWellState_.numPhases(); ++np )
|
||||
buffer.write( localWellState_.wellRates()[ wellRateIdx + np ] );
|
||||
|
||||
// Write well control
|
||||
buffer.write(localWellState_.currentControls()[ wellIdx ]);
|
||||
|
||||
// Write perfRates and perfPress. No need to figure out the index
|
||||
// mapping there as the ordering of the perforations should
|
||||
// be the same for global and local state.
|
||||
@@ -573,6 +577,9 @@ namespace Opm
|
||||
for( int np=0; np<globalWellState_.numPhases(); ++np )
|
||||
buffer.read( globalWellState_.wellRates()[ wellRateIdx + np ] );
|
||||
|
||||
// Write well control
|
||||
buffer.read(globalWellState_.currentControls()[ wellIdx ]);
|
||||
|
||||
// Read perfRates and perfPress. No need to figure out the index
|
||||
// mapping there as the ordering of the perforations should
|
||||
// be the same for global and local state.
|
||||
|
||||
Reference in New Issue
Block a user