Use RestartValue container for Eclipse output
This commit is contained in:
+10
-7
@@ -144,19 +144,21 @@ BOOST_AUTO_TEST_CASE(test_RFT) {
|
||||
well2_comps[i] = well_comp;
|
||||
}
|
||||
|
||||
Opm::data::Solution solution = createBlackoilState(2, numCells);
|
||||
Opm::data::Wells wells;
|
||||
wells["OP_1"] = { r1, 1.0, 1.1, 3.1, 1, well1_comps };
|
||||
wells["OP_2"] = { r2, 1.0, 1.1, 3.2, 1, well2_comps };
|
||||
|
||||
|
||||
RestartValue restart_value(solution, wells);
|
||||
|
||||
eclipseWriter.writeTimeStep( 2,
|
||||
false,
|
||||
step_time - start_time,
|
||||
createBlackoilState( 2, numCells ),
|
||||
wells,
|
||||
{},
|
||||
{},
|
||||
{});
|
||||
restart_value,
|
||||
{},
|
||||
{},
|
||||
{});
|
||||
}
|
||||
|
||||
verifyRFTFile("TESTRFT.RFT");
|
||||
@@ -235,14 +237,15 @@ BOOST_AUTO_TEST_CASE(test_RFT2) {
|
||||
}
|
||||
|
||||
Opm::data::Wells wells;
|
||||
Opm::data::Solution solution = createBlackoilState(2, numCells);
|
||||
wells["OP_1"] = { r1, 1.0, 1.1, 3.1, 1, well1_comps };
|
||||
wells["OP_2"] = { r2, 1.0, 1.1, 3.2, 1, well2_comps };
|
||||
|
||||
RestartValue restart_value(solution, wells);
|
||||
eclipseWriter.writeTimeStep( step,
|
||||
false,
|
||||
step_time - start_time,
|
||||
createBlackoilState( 2, numCells ),
|
||||
wells,
|
||||
restart_value,
|
||||
{},
|
||||
{},
|
||||
{});
|
||||
|
||||
Reference in New Issue
Block a user