Restart Output (Wells): Store Effective 'Kh' Product

Mostly to forward to SCON array.

While here, also fix 'Missing initializer' warnings in the
'get_completions' unit test.
This commit is contained in:
Bård Skaflestad
2018-07-10 17:37:49 +02:00
parent 3466776c1a
commit 48047f8c7a
2 changed files with 6 additions and 3 deletions

View File

@@ -112,6 +112,7 @@ namespace Opm {
double cell_pressure;
double cell_saturation_water;
double cell_saturation_gas;
double effective_Kh;
template <class MessageBufferType>
void write(MessageBufferType& buffer) const;
@@ -296,6 +297,7 @@ namespace Opm {
buffer.write(this->cell_pressure);
buffer.write(this->cell_saturation_water);
buffer.write(this->cell_saturation_gas);
buffer.write(this->effective_Kh);
}
template <class MessageBufferType>
@@ -336,6 +338,7 @@ namespace Opm {
buffer.read(this->cell_pressure);
buffer.read(this->cell_saturation_water);
buffer.read(this->cell_saturation_gas);
buffer.read(this->effective_Kh);
}
template <class MessageBufferType>

View File

@@ -103,14 +103,14 @@ BOOST_AUTO_TEST_CASE(get_completions) {
* the completion keys (active indices) and well names correspond to the
* input deck. All other entries in the well structures are arbitrary.
*/
w1.connections.push_back( { 88, rc1, 30.45, 123.45 } );
w1.connections.push_back( { 288, rc2, 33.19, 67.89 } );
w1.connections.push_back( { 88, rc1, 30.45, 123.45, 543.21, 0.123, 0.5, 17.29 } );
w1.connections.push_back( { 288, rc2, 33.19, 67.89, 98.76, 0.5, 0.125, 355.113 } );
w2.rates = r2;
w2.bhp = 2.34;
w2.temperature = 4.56;
w2.control = 2;
w2.connections.push_back( { 188, rc3, 36.22, 19.28 } );
w2.connections.push_back( { 188, rc3, 36.22, 19.28, 28.91, 0.125, 0.125, 3.141 } );
data::Wells wellRates;