Add UDQState argument to output writer

This commit is contained in:
Joakim Hove
2020-08-31 16:15:54 +02:00
parent 432f666768
commit 3b0e795e0b
8 changed files with 37 additions and 13 deletions

View File

@@ -39,6 +39,7 @@
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Action/State.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/UDQ/UDQState.hpp>
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
#include <opm/parser/eclipse/Parser/Parser.hpp>
@@ -277,6 +278,7 @@ BOOST_AUTO_TEST_CASE(test_RFT)
SummaryState st(std::chrono::system_clock::now());
Action::State action_state;
UDQState udq_state(1234);
data::Rates r1, r2;
r1.set( data::Rates::opt::wat, 4.11 );
@@ -312,6 +314,7 @@ BOOST_AUTO_TEST_CASE(test_RFT)
eclipseWriter.writeTimeStep( action_state,
st,
udq_state,
2,
false,
step_time - start_time,
@@ -396,6 +399,7 @@ BOOST_AUTO_TEST_CASE(test_RFT2)
SummaryConfig summary_config( deck, schedule, eclipseState.getTableManager( ));
SummaryState st(std::chrono::system_clock::now());
Action::State action_state;
UDQState udq_state(10);
const auto start_time = schedule.posixStartTime();
const auto& time_map = schedule.getTimeMap( );
@@ -438,6 +442,7 @@ BOOST_AUTO_TEST_CASE(test_RFT2)
eclipseWriter.writeTimeStep( action_state,
st,
udq_state,
step,
false,
step_time - start_time,