From 91879da04eeaadc1c0a4236c08588808b4255f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 29 Dec 2016 13:51:07 +0100 Subject: [PATCH] Silence various warnings. --- src/opm/output/eclipse/EclipseWriter.cpp | 8 ++++---- src/opm/output/eclipse/Summary.cpp | 12 ++++++------ tests/test_Tables.cpp | 4 ++-- tests/test_Wells.cpp | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/opm/output/eclipse/EclipseWriter.cpp b/src/opm/output/eclipse/EclipseWriter.cpp index 50a1e260f..dc367d196 100644 --- a/src/opm/output/eclipse/EclipseWriter.cpp +++ b/src/opm/output/eclipse/EclipseWriter.cpp @@ -589,15 +589,15 @@ void EclipseWriter::writeInitial( data::Solution simProps, const NNC& nnc) { std::vector< double > serialize_XWEL( const data::Wells& wells, int report_step, const std::vector< const Well* > sched_wells, - const Phases& phase, + const Phases& phase_spec, const EclipseGrid& grid ) { using rt = data::Rates::opt; std::vector< rt > phases; - if( phase.active( Phase::WATER ) ) phases.push_back( rt::wat ); - if( phase.active( Phase::OIL ) ) phases.push_back( rt::oil ); - if( phase.active( Phase::GAS ) ) phases.push_back( rt::gas ); + if( phase_spec.active( Phase::WATER ) ) phases.push_back( rt::wat ); + if( phase_spec.active( Phase::OIL ) ) phases.push_back( rt::oil ); + if( phase_spec.active( Phase::GAS ) ) phases.push_back( rt::gas ); std::vector< double > xwel; for( const auto* sched_well : sched_wells ) { diff --git a/src/opm/output/eclipse/Summary.cpp b/src/opm/output/eclipse/Summary.cpp index 38bffc61f..c4b09cd61 100644 --- a/src/opm/output/eclipse/Summary.cpp +++ b/src/opm/output/eclipse/Summary.cpp @@ -767,22 +767,22 @@ class Summary::keyword_handlers { Summary::Summary( const EclipseState& st, const SummaryConfig& sum , - const EclipseGrid& grid) : - Summary( st, sum, grid, st.getIOConfig().fullBasePath().c_str() ) + const EclipseGrid& grid_arg) : + Summary( st, sum, grid_arg, st.getIOConfig().fullBasePath().c_str() ) {} Summary::Summary( const EclipseState& st, const SummaryConfig& sum, - const EclipseGrid& grid, + const EclipseGrid& grid_arg, const std::string& basename ) : - Summary( st, sum, grid, basename.c_str() ) + Summary( st, sum, grid_arg, basename.c_str() ) {} Summary::Summary( const EclipseState& st, const SummaryConfig& sum, - const EclipseGrid& grid_, + const EclipseGrid& grid_arg, const char* basename ) : - grid( grid_ ), + grid( grid_arg ), ecl_sum( ecl_sum_alloc_writer( basename, diff --git a/tests/test_Tables.cpp b/tests/test_Tables.cpp index 94e00596b..c7f29b7b6 100644 --- a/tests/test_Tables.cpp +++ b/tests/test_Tables.cpp @@ -56,7 +56,7 @@ struct setup { EclipseState es; ERT::TestArea ta; - setup( const std::string& name, const std::string& path , const ParseContext& parseContext = ParseContext( )) : + setup( const std::string& path , const ParseContext& parseContext = ParseContext( )) : deck( Parser().parseFile( path, parseContext ) ), es( deck, ParseContext() ), ta( ERT::TestArea("test_tables") ) @@ -69,7 +69,7 @@ struct setup { BOOST_AUTO_TEST_CASE(Test_PVTX) { - setup cfg( "PVTO" , "table_deck.DATA"); + setup cfg( "table_deck.DATA"); Tables tables( cfg.es.getUnits() ); tables.addPVTO( cfg.es.getTableManager().getPvtoTables() ); diff --git a/tests/test_Wells.cpp b/tests/test_Wells.cpp index 17d95f1fa..4121b328a 100644 --- a/tests/test_Wells.cpp +++ b/tests/test_Wells.cpp @@ -107,14 +107,14 @@ BOOST_AUTO_TEST_CASE(get_completions) { * the completion keys (active indices) and well names correspond to the * input deck. All other entries in the well structures are arbitrary. */ - w1.completions.push_back( { 88, rc1, 30.45 } ); - w1.completions.push_back( { 288, rc2, 33.19 } ); + w1.completions.push_back( { 88, rc1, 30.45, 123.45 } ); + w1.completions.push_back( { 288, rc2, 33.19, 67.89 } ); w2.rates = r2; w2.bhp = 2.34; w2.temperature = 4.56; w2.control = 2; - w2.completions.push_back( { 188, rc3, 36.22 } ); + w2.completions.push_back( { 188, rc3, 36.22, 19.28 } ); data::Wells wellRates;