NNC variable not defaulted in writeInit

This commit is contained in:
Jørgen Kvalsvik
2016-05-24 16:39:33 +02:00
parent 99e2a55204
commit 0f1a1d7ede
6 changed files with 6 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ public:
* This routine should be called before the first timestep (i.e. when
* timer.currentStepNum () == 0)
*/
virtual void writeInit( const NNC& nnc = NNC() ) = 0;
virtual void writeInit( const NNC& nnc ) = 0;
/*!
* \brief Write a blackoil reservoir state to disk for later inspection with

View File

@@ -55,7 +55,7 @@ public:
*
* If NNC is given, writes TRANNNC keyword.
*/
void writeInit( const NNC& nnc = NNC() );
void writeInit( const NNC& nnc );
/*!
* \brief Write a reservoir state and summary information to disk.

View File

@@ -266,7 +266,7 @@ BOOST_AUTO_TEST_CASE(EclipseWriterIntegration)
auto start_time = util_make_datetime( 0, 0, 0, 10, 10, 2008 );
auto first_step = util_make_datetime( 0, 0, 0, 10, 11, 2008 );
eclWriter.writeInit();
eclWriter.writeInit( NNC() );
data::Wells wells;

View File

@@ -125,7 +125,7 @@ BOOST_AUTO_TEST_CASE(test_RFT) {
time_t start_time = eclipseState->getSchedule()->posixStartTime();
/* step time read from deck and hard-coded here */
time_t step_time = util_make_datetime( 0, 0, 0, 10, 10, 2008 );
eclipseWriter.writeInit();
eclipseWriter.writeInit( NNC() );
Opm::data::Wells wells {
{ { "OP_1", { {}, 1.0, 1.1, {} } },

View File

@@ -232,7 +232,7 @@ first_sim(test_work_area_type * test_area) {
EclipseWriter eclWriter( eclipseState, num_cells, nullptr );
auto start_time = util_make_datetime( 0, 0, 0, 1, 11, 1979 );
auto first_step = util_make_datetime( 0, 0, 0, 10, 10, 2008 );
eclWriter.writeInit();
eclWriter.writeInit( NNC() );
auto sol = mkSolution( num_cells );
auto wells = mkWells();

View File

@@ -141,7 +141,7 @@ BOOST_AUTO_TEST_CASE(EclipseWriteRestartWellInfo) {
const auto num_cells = eclipseState->getInputGrid()->getCartesianSize();
EclipseWriter eclipseWriter( eclipseState, num_cells, nullptr );
eclipseWriter.writeInit();
eclipseWriter.writeInit( NNC() );
int countTimeStep = eclipseState->getSchedule()->getTimeMap()->numTimesteps();