Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkip committed Dec 16, 2024
1 parent c596299 commit ff45050
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions opm/io/eclipse/rst/well.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ Opm::RestartIO::RstWell::RstWell(const UnitSystem& unit_system,
water_void_rate( unit_system.to_si(M::liquid_surface_volume, xwel[VI::XWell::WatVoidPrRate])),
gas_void_rate( unit_system.to_si(M::gas_surface_volume, xwel[VI::XWell::GasVoidPrRate]))
{
// For E100 it appears that +1 instead of -1 is written for group_controllable_flag when the
// group control is aactive, so using this to correct active_control (where ind.ctrl. is written)
// For E100 it appears that +1 instead of -1 is written for group_controllable_flag when the
// group control is active, so using this to correct active_control (where ind.ctrl. is written)
if (group_controllable_flag > 0) {
active_control = VI::IWell::Value::WellCtrlMode::Group;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_AggregateWellData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace {
struct MockIH
{
explicit MockIH(const int numWells,
const int iwelPerWell = 155, // E100
const int iwelPerWell = 154, // E100
const int swelPerWell = 122, // E100
const int xwelPerWell = 130, // E100
const int zwelPerWell = 3); // E100
Expand Down
5 changes: 3 additions & 2 deletions tests/test_InteHEAD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ BOOST_AUTO_TEST_CASE(Tuning_param)
BOOST_AUTO_TEST_CASE(Various_Parameters)
{
const auto ih = Opm::RestartIO::InteHEAD{}
.variousParam(2015, 100);
.variousParam(2015, 100, 0);

const auto& v = ih.data();

Expand Down Expand Up @@ -634,6 +634,7 @@ BOOST_AUTO_TEST_CASE(TestHeader)
const auto mxwpit = 6;
const auto version = 2015;
const auto iprog = 100;
const auto ntracers = 0;
const auto nsegwl = 3;
const auto nswlmx = 4;
const auto nsegmx = 5;
Expand Down Expand Up @@ -667,7 +668,7 @@ BOOST_AUTO_TEST_CASE(TestHeader)
.aquiferDimensions(aqudims)
.stepParam(tstep, report_step)
.tuningParam({newtmx, newtmn, litmax, litmin, mxwsit, mxwpit, 0})
.variousParam(version, iprog)
.variousParam(version, iprog, ntracers)
.wellSegDimensions({nsegwl, nswlmx, nsegmx, nlbrmx, nisegz, nrsegz, nilbrz})
.regionDimensions({ntfip, nmfipr, 0,0,0})
.ngroups({ngroup});
Expand Down
3 changes: 2 additions & 1 deletion tests/test_LogiHEAD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ BOOST_AUTO_TEST_CASE(Radial_Settings_and_Init)
const auto e300_radial = false;
const auto e100_radial = true;
const auto enableHyster = true;
const auto isTemp = false;

const auto lh = Opm::RestartIO::LogiHEAD{}
.variousParam(e300_radial, e100_radial, 4, enableHyster);
.variousParam(e300_radial, e100_radial, 4, enableHyster, isTemp);

const auto& v = lh.data();

Expand Down

0 comments on commit ff45050

Please sign in to comment.