Fixes unsused parameter warnings for ebos stuff

This commit is contained in:
Markus Blatt 2016-11-21 12:01:20 +01:00
parent e223c03647
commit a16bce8785
3 changed files with 14 additions and 7 deletions

View File

@ -64,6 +64,7 @@
#include <dune/istl/owneroverlapcopy.hh>
#include <dune/common/parallel/collectivecommunication.hh>
#include <dune/common/unused.hh>
#include <cassert>
#include <cmath>
@ -186,6 +187,7 @@ namespace Opm {
, isBeginReportStep_(false)
, invalidateIntensiveQuantitiesCache_(true)
{
DUNE_UNUSED_PARAMETER(rock_comp_props);
const double gravity = detail::getGravity(geo_.gravity(), UgGridHelpers::dimensions(grid_));
const std::vector<double> pv(geo_.poreVolume().data(), geo_.poreVolume().data() + geo_.poreVolume().size());
const std::vector<double> depth(geo_.z().data(), geo_.z().data() + geo_.z().size());
@ -335,6 +337,9 @@ namespace Opm {
const ReservoirState& reservoir_state,
WellState& well_state)
{
DUNE_UNUSED_PARAMETER(timer);
DUNE_UNUSED_PARAMETER(reservoir_state);
DUNE_UNUSED_PARAMETER(well_state);
}
/// Assemble the residual and Jacobian of the nonlinear system.

View File

@ -169,7 +169,7 @@ namespace Opm
}
// dummy method that is not implemented for this class
SolutionVector computeNewtonIncrement(const LinearisedBlackoilResidual& residual) const
SolutionVector computeNewtonIncrement(const LinearisedBlackoilResidual&) const
{
OPM_THROW(std::logic_error,"This method is not implemented");
return SolutionVector();

View File

@ -39,6 +39,8 @@
#include <opm/common/Exceptions.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <dune/common/unused.hh>
namespace Opm {
class SimulatorFullyImplicitBlackoilEbos;
@ -118,7 +120,7 @@ public:
threshold_pressures_by_face_(threshold_pressures_by_face),
is_parallel_run_( false )
{
DUNE_UNUSED_PARAMETER(eclipse_state);
// Misc init.
const int num_cells = AutoDiffGrid::numCells(grid());
allcells_.resize(num_cells);
@ -395,10 +397,10 @@ public:
{ return ebosSimulator_.gridManager().grid(); }
protected:
void handleAdditionalWellInflow(SimulatorTimer& timer,
WellsManager& wells_manager,
WellState& well_state,
const Wells* wells)
void handleAdditionalWellInflow(SimulatorTimer& /* timer */,
WellsManager& /* wells_manager */,
WellState& /* well_state */,
const Wells* /* wells */)
{ }
std::unique_ptr<Solver> createSolver(const WellModel& well_model)
@ -632,7 +634,7 @@ protected:
}
std::vector<double> FIPTotals(const std::vector<std::vector<double>>& fip, const ReservoirState& state)
std::vector<double> FIPTotals(const std::vector<std::vector<double>>& fip, const ReservoirState& /* state */)
{
std::vector<double> totals(7,0.0);
for (int i = 0; i < 5; ++i) {