mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use the shared SummaryState instance when initializing well rates
This commit is contained in:
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(AddWellsAndGroupToCollection) {
|
||||
const Eclipse3DProperties eclipseProperties ( deck , table, grid);
|
||||
const Runspec runspec(deck);
|
||||
const Schedule sched(deck, grid, eclipseProperties, runspec);
|
||||
|
||||
SummaryState summaryState;
|
||||
|
||||
WellCollection collection;
|
||||
|
||||
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(AddWellsAndGroupToCollection) {
|
||||
WellCollection wellCollection;
|
||||
const auto wells = sched.getWells2atEnd();
|
||||
for (size_t i=0; i<wells.size(); i++) {
|
||||
collection.addWell(wells[i], 2, pu);
|
||||
collection.addWell(wells[i], summaryState, 2, pu);
|
||||
}
|
||||
|
||||
BOOST_CHECK_EQUAL("G1", collection.findNode("INJ1")->getParent()->name());
|
||||
@@ -84,6 +84,7 @@ BOOST_AUTO_TEST_CASE(EfficiencyFactor) {
|
||||
const Eclipse3DProperties eclipseProperties ( deck , table, grid);
|
||||
const Runspec runspec(deck);
|
||||
const Schedule sched(deck, grid, eclipseProperties, runspec);
|
||||
SummaryState summaryState;
|
||||
|
||||
size_t timestep = 2;
|
||||
WellCollection collection;
|
||||
@@ -100,7 +101,7 @@ BOOST_AUTO_TEST_CASE(EfficiencyFactor) {
|
||||
// Add wells to WellCollection
|
||||
const auto wells1 = sched.getWells2(timestep);
|
||||
for (size_t i=0; i<wells1.size(); i++) {
|
||||
collection.addWell(wells1[i], timestep, pu);
|
||||
collection.addWell(wells1[i], summaryState, timestep, pu);
|
||||
}
|
||||
|
||||
// 0.5(inj1) * 0.8(G1)
|
||||
|
||||
Reference in New Issue
Block a user