Use RestartValue container for Eclipse output

This commit is contained in:
Joakim Hove
2018-05-14 16:12:52 +02:00
parent fea57c5031
commit d078a96eae
8 changed files with 46 additions and 61 deletions
+10 -7
View File
@@ -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,
{},
{},
{});