remove use of Unused.hpp

This commit is contained in:
Arne Morten Kvarving 2022-08-02 10:40:48 +02:00
parent 02a91bf216
commit d6c378e6a9
59 changed files with 161 additions and 242 deletions

View File

@ -44,7 +44,6 @@
#include <opm/material/thermal/ConstantSolidHeatCapLaw.hpp> #include <opm/material/thermal/ConstantSolidHeatCapLaw.hpp>
#include <opm/material/binarycoefficients/Brine_CO2.hpp> #include <opm/material/binarycoefficients/Brine_CO2.hpp>
#include <opm/material/common/UniformTabulated2DFunction.hpp> #include <opm/material/common/UniformTabulated2DFunction.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -505,9 +504,9 @@ public:
*/ */
template <class Context> template <class Context>
const SolidEnergyLawParams& const SolidEnergyLawParams&
solidEnergyLawParams(const Context& context OPM_UNUSED, solidEnergyLawParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return solidEnergyLawParams_; } { return solidEnergyLawParams_; }
/*! /*!
@ -604,9 +603,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -40,7 +40,6 @@
#include <opm/material/constraintsolvers/MiscibleMultiPhaseComposition.hpp> #include <opm/material/constraintsolvers/MiscibleMultiPhaseComposition.hpp>
#include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp> #include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -353,9 +352,9 @@ public:
* \copydoc FvBaseMultiPhaseProblem::temperature * \copydoc FvBaseMultiPhaseProblem::temperature
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 293.15; /* [K] */ } { return 293.15; /* [K] */ }
/*! /*!
@ -403,9 +402,9 @@ public:
*/ */
template <class Context> template <class Context>
const ThermalConductionLawParams & const ThermalConductionLawParams &
thermalConductionParams(const Context& context OPM_UNUSED, thermalConductionParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return thermalCondParams_; } { return thermalCondParams_; }
//! \} //! \}
@ -487,9 +486,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -37,7 +37,6 @@
#include <opm/material/fluidsystems/H2ON2FluidSystem.hpp> #include <opm/material/fluidsystems/H2ON2FluidSystem.hpp>
#include <opm/material/fluidstates/CompositionalFluidState.hpp> #include <opm/material/fluidstates/CompositionalFluidState.hpp>
#include <opm/material/constraintsolvers/ComputeFromReferencePhase.hpp> #include <opm/material/constraintsolvers/ComputeFromReferencePhase.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/common/version.hh> #include <dune/common/version.hh>
@ -275,18 +274,18 @@ public:
* \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability * \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability
*/ */
template <class Context> template <class Context>
const DimMatrix& intrinsicPermeability(const Context& context OPM_UNUSED, const DimMatrix& intrinsicPermeability(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return K_; } { return K_; }
/*! /*!
* \copydoc FvBaseMultiPhaseProblem::porosity * \copydoc FvBaseMultiPhaseProblem::porosity
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 0.35; } { return 0.35; }
/*! /*!
@ -294,18 +293,18 @@ public:
*/ */
template <class Context> template <class Context>
const MaterialLawParams& const MaterialLawParams&
materialLawParams(const Context& context OPM_UNUSED, materialLawParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return materialParams_; } { return materialParams_; }
/*! /*!
* \copydoc FvBaseMultiPhaseProblem::temperature * \copydoc FvBaseMultiPhaseProblem::temperature
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } { return temperature_; }
//! \} //! \}
@ -322,9 +321,9 @@ public:
*/ */
template <class Context> template <class Context>
void boundary(BoundaryRateVector& values, void boundary(BoundaryRateVector& values,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ values.setNoFlow(); } { values.setNoFlow(); }
//! \} //! \}
@ -358,9 +357,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -34,7 +34,6 @@
#include <opm/material/components/SimpleH2O.hpp> #include <opm/material/components/SimpleH2O.hpp>
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp> #include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
#include <opm/material/fluidsystems/LiquidPhase.hpp> #include <opm/material/fluidsystems/LiquidPhase.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -334,18 +333,18 @@ public:
* \copydoc FvBaseMultiPhaseProblem::temperature * \copydoc FvBaseMultiPhaseProblem::temperature
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 273.15 + 10; } // 10C { return 273.15 + 10; } // 10C
/*! /*!
* \copydoc FvBaseMultiPhaseProblem::porosity * \copydoc FvBaseMultiPhaseProblem::porosity
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 0.4; } { return 0.4; }
/*! /*!
@ -419,9 +418,9 @@ public:
*/ */
template <class Context> template <class Context>
void initial(PrimaryVariables& values, void initial(PrimaryVariables& values,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ {
// const GlobalPosition& globalPos = context.pos(spaceIdx, timeIdx); // const GlobalPosition& globalPos = context.pos(spaceIdx, timeIdx);
values[pressure0Idx] = 1.0e+5; // + 9.81*1.23*(20-globalPos[dim-1]); values[pressure0Idx] = 1.0e+5; // + 9.81*1.23*(20-globalPos[dim-1]);
@ -432,9 +431,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -35,7 +35,6 @@
#include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp> #include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp>
#include <opm/material/constraintsolvers/ComputeFromReferencePhase.hpp> #include <opm/material/constraintsolvers/ComputeFromReferencePhase.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -284,9 +283,9 @@ public:
* \copydoc FvBaseMultiPhaseProblem::temperature * \copydoc FvBaseMultiPhaseProblem::temperature
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } { return temperature_; }
/*! /*!
@ -308,9 +307,9 @@ public:
* \copydoc FvBaseMultiPhaseProblem::porosity * \copydoc FvBaseMultiPhaseProblem::porosity
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return porosity_; } { return porosity_; }
/*! /*!
@ -318,9 +317,9 @@ public:
*/ */
template <class Context> template <class Context>
const MaterialLawParams& const MaterialLawParams&
materialLawParams(const Context& context OPM_UNUSED, materialLawParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return materialParams_; } { return materialParams_; }
//! \} //! \}
@ -392,9 +391,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -41,7 +41,6 @@
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp> #include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
#include <opm/material/components/SimpleH2O.hpp> #include <opm/material/components/SimpleH2O.hpp>
#include <opm/material/components/Dnapl.hpp> #include <opm/material/components/Dnapl.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/version.hh> #include <dune/common/version.hh>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
@ -438,9 +437,9 @@ public:
* \copydoc FvBaseMultiPhaseProblem::porosity * \copydoc FvBaseMultiPhaseProblem::porosity
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 0.4; } { return 0.4; }
/*! /*!
@ -461,9 +460,9 @@ public:
* \copydoc FvBaseMultiPhaseProblem::temperature * \copydoc FvBaseMultiPhaseProblem::temperature
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } { return temperature_; }
//! \} //! \}
@ -660,9 +659,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -39,7 +39,6 @@
#include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp> #include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp>
#include <opm/material/thermal/ConstantSolidHeatCapLaw.hpp> #include <opm/material/thermal/ConstantSolidHeatCapLaw.hpp>
#include <opm/material/thermal/SomertonThermalConductionLaw.hpp> #include <opm/material/thermal/SomertonThermalConductionLaw.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -328,9 +327,9 @@ public:
* This problem simply assumes a constant temperature. * This problem simply assumes a constant temperature.
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } { return temperature_; }
/*! /*!
@ -385,9 +384,9 @@ public:
*/ */
template <class Context> template <class Context>
const SolidEnergyLawParams& const SolidEnergyLawParams&
solidEnergyLawParams(const Context& context OPM_UNUSED, solidEnergyLawParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return solidEnergyLawParams_; } { return solidEnergyLawParams_; }
/*! /*!
@ -459,9 +458,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = 0.0; } { rate = 0.0; }
//! \} //! \}

View File

@ -31,7 +31,6 @@
#include <opm/material/fluidstates/CompositionalFluidState.hpp> #include <opm/material/fluidstates/CompositionalFluidState.hpp>
#include <opm/material/fluidsystems/H2ON2LiquidPhaseFluidSystem.hpp> #include <opm/material/fluidsystems/H2ON2LiquidPhaseFluidSystem.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -217,9 +216,9 @@ public:
* This problem assumes a temperature. * This problem assumes a temperature.
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } // in [K] { return temperature_; } // in [K]
/*! /*!
@ -228,9 +227,9 @@ public:
* This problem uses a constant intrinsic permeability. * This problem uses a constant intrinsic permeability.
*/ */
template <class Context> template <class Context>
const DimMatrix& intrinsicPermeability(const Context& context OPM_UNUSED, const DimMatrix& intrinsicPermeability(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return perm_; } { return perm_; }
/*! /*!
@ -239,9 +238,9 @@ public:
* This problem uses a constant porosity. * This problem uses a constant porosity.
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return porosity_; } { return porosity_; }
#if 0 #if 0
@ -342,9 +341,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -39,7 +39,6 @@
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp> #include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
#include <opm/material/components/SimpleH2O.hpp> #include <opm/material/components/SimpleH2O.hpp>
#include <opm/material/components/Air.hpp> #include <opm/material/components/Air.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
@ -314,27 +313,27 @@ public:
* \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability * \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability
*/ */
template <class Context> template <class Context>
const DimMatrix& intrinsicPermeability(const Context& context OPM_UNUSED, const DimMatrix& intrinsicPermeability(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return K_; } { return K_; }
/*! /*!
* \copydoc ForchheimerBaseProblem::ergunCoefficient * \copydoc ForchheimerBaseProblem::ergunCoefficient
*/ */
template <class Context> template <class Context>
Scalar ergunCoefficient(const Context& context OPM_UNUSED, Scalar ergunCoefficient(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 0.3866; } { return 0.3866; }
/*! /*!
* \copydoc FvBaseMultiPhaseProblem::porosity * \copydoc FvBaseMultiPhaseProblem::porosity
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 0.558; } { return 0.558; }
/*! /*!
@ -342,18 +341,18 @@ public:
*/ */
template <class Context> template <class Context>
const MaterialLawParams& const MaterialLawParams&
materialLawParams(const Context& context OPM_UNUSED, materialLawParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return materialParams_; } { return materialParams_; }
/*! /*!
* \copydoc FvBaseMultiPhaseProblem::temperature * \copydoc FvBaseMultiPhaseProblem::temperature
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } { return temperature_; }
//! \} //! \}
@ -404,9 +403,9 @@ public:
*/ */
template <class Context> template <class Context>
void initial(PrimaryVariables& values, void initial(PrimaryVariables& values,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ {
// assign the primary variables // assign the primary variables
values.assignNaive(initialFluidState_); values.assignNaive(initialFluidState_);
@ -420,9 +419,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -38,7 +38,6 @@
#include <opm/material/fluidsystems/blackoilpvt/DryGasPvt.hpp> #include <opm/material/fluidsystems/blackoilpvt/DryGasPvt.hpp>
#include <opm/material/fluidsystems/blackoilpvt/LiveOilPvt.hpp> #include <opm/material/fluidsystems/blackoilpvt/LiveOilPvt.hpp>
#include <opm/material/fluidsystems/blackoilpvt/ConstantCompressibilityWaterPvt.hpp> #include <opm/material/fluidsystems/blackoilpvt/ConstantCompressibilityWaterPvt.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -532,9 +531,9 @@ public:
* will need it one day? * will need it one day?
*/ */
template <class Context> template <class Context>
Scalar temperature(const Context& context OPM_UNUSED, Scalar temperature(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return temperature_; } { return temperature_; }
// \} // \}
@ -552,9 +551,9 @@ public:
*/ */
template <class Context> template <class Context>
void boundary(BoundaryRateVector& values, void boundary(BoundaryRateVector& values,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ {
// no flow on top and bottom // no flow on top and bottom
values.setNoFlow(); values.setNoFlow();
@ -575,9 +574,9 @@ public:
*/ */
template <class Context> template <class Context>
void initial(PrimaryVariables& values, void initial(PrimaryVariables& values,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ {
values.assignNaive(initialFluidState_); values.assignNaive(initialFluidState_);
@ -622,9 +621,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -36,7 +36,6 @@
#include <opm/material/fluidmatrixinteractions/LinearMaterial.hpp> #include <opm/material/fluidmatrixinteractions/LinearMaterial.hpp>
#include <opm/material/fluidmatrixinteractions/EffToAbsLaw.hpp> #include <opm/material/fluidmatrixinteractions/EffToAbsLaw.hpp>
#include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp> #include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -302,7 +301,7 @@ public:
Scalar temperature(const Context& context, unsigned spaceIdx, unsigned timeIdx) const Scalar temperature(const Context& context, unsigned spaceIdx, unsigned timeIdx) const
{ return temperature(context.globalSpaceIndex(spaceIdx, timeIdx), timeIdx); } { return temperature(context.globalSpaceIndex(spaceIdx, timeIdx), timeIdx); }
Scalar temperature(unsigned globalSpaceIdx OPM_UNUSED, unsigned timeIdx OPM_UNUSED) const Scalar temperature(unsigned /*globalSpaceIdx*/, unsigned /*timeIdx*/) const
{ return 273.15 + 10; } // -> 10°C { return 273.15 + 10; } // -> 10°C
/*! /*!
@ -323,9 +322,9 @@ public:
* \copydoc FvBaseMultiPhaseProblem::porosity * \copydoc FvBaseMultiPhaseProblem::porosity
*/ */
template <class Context> template <class Context>
Scalar porosity(const Context& context OPM_UNUSED, Scalar porosity(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return 0.4; } { return 0.4; }
/*! /*!
@ -341,7 +340,7 @@ public:
} }
const MaterialLawParams& materialLawParams(unsigned globalSpaceIdx, const MaterialLawParams& materialLawParams(unsigned globalSpaceIdx,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ {
if (dofIsInLens_[globalSpaceIdx]) if (dofIsInLens_[globalSpaceIdx])
return lensMaterialParams_; return lensMaterialParams_;
@ -361,8 +360,8 @@ public:
// the Richards model does not have an element context available at all places // the Richards model does not have an element context available at all places
// where the reference pressure is required... // where the reference pressure is required...
Scalar referencePressure(unsigned globalSpaceIdx OPM_UNUSED, Scalar referencePressure(unsigned /*globalSpaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return pnRef_; } { return pnRef_; }
//! \} //! \}
@ -454,9 +453,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = Scalar(0.0); } { rate = Scalar(0.0); }
//! \} //! \}

View File

@ -41,7 +41,6 @@
#include <opm/material/thermal/ConstantSolidHeatCapLaw.hpp> #include <opm/material/thermal/ConstantSolidHeatCapLaw.hpp>
#include <opm/material/thermal/SomertonThermalConductionLaw.hpp> #include <opm/material/thermal/SomertonThermalConductionLaw.hpp>
#include <opm/material/constraintsolvers/ComputeFromReferencePhase.hpp> #include <opm/material/constraintsolvers/ComputeFromReferencePhase.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/dgfparser/dgfyasp.hh> #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
@ -399,9 +398,9 @@ public:
*/ */
template <class Context> template <class Context>
const SolidEnergyLawParams& const SolidEnergyLawParams&
solidEnergyLawParams(const Context& context OPM_UNUSED, solidEnergyLawParams(const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ return solidEnergyLawParams_; } { return solidEnergyLawParams_; }
/*! /*!
@ -508,9 +507,9 @@ public:
*/ */
template <class Context> template <class Context>
void source(RateVector& rate, void source(RateVector& rate,
const Context& context OPM_UNUSED, const Context& /*context*/,
unsigned spaceIdx OPM_UNUSED, unsigned /*spaceIdx*/,
unsigned timeIdx OPM_UNUSED) const unsigned /*timeIdx*/) const
{ rate = 0; } { rate = 0; }
//! \} //! \}

View File

@ -44,7 +44,6 @@
#endif #endif
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -31,7 +31,6 @@
#include <opm/models/discretization/common/fvbaseproperties.hh> #include <opm/models/discretization/common/fvbaseproperties.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -35,7 +35,6 @@
#include <opm/material/common/Tabulated1DFunction.hpp> #include <opm/material/common/Tabulated1DFunction.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
@ -105,14 +104,14 @@ public:
return pvIdx == temperatureIdx; return pvIdx == temperatureIdx;
} }
static std::string primaryVarName(unsigned pvIdx OPM_OPTIM_UNUSED) static std::string primaryVarName([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
return "temperature"; return "temperature";
} }
static Scalar primaryVarWeight(unsigned pvIdx OPM_OPTIM_UNUSED) static Scalar primaryVarWeight([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
@ -128,14 +127,14 @@ public:
return eqIdx == contiEnergyEqIdx; return eqIdx == contiEnergyEqIdx;
} }
static std::string eqName(unsigned eqIdx OPM_OPTIM_UNUSED) static std::string eqName([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));
return "conti^energy"; return "conti^energy";
} }
static Scalar eqWeight(unsigned eqIdx OPM_OPTIM_UNUSED) static Scalar eqWeight([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));

View File

@ -54,7 +54,6 @@
#endif #endif
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
@ -292,14 +291,14 @@ public:
return pvIdx == zFractionIdx; return pvIdx == zFractionIdx;
} }
static std::string primaryVarName(unsigned pvIdx OPM_OPTIM_UNUSED) static std::string primaryVarName([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
return "z_fraction"; return "z_fraction";
} }
static Scalar primaryVarWeight(unsigned pvIdx OPM_OPTIM_UNUSED) static Scalar primaryVarWeight([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
@ -315,14 +314,14 @@ public:
return eqIdx == contiZfracEqIdx; return eqIdx == contiZfracEqIdx;
} }
static std::string eqName(unsigned eqIdx OPM_OPTIM_UNUSED) static std::string eqName([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));
return "conti^solvent"; return "conti^solvent";
} }
static Scalar eqWeight(unsigned eqIdx OPM_OPTIM_UNUSED) static Scalar eqWeight([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));

View File

@ -42,7 +42,6 @@
#endif #endif
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
@ -258,13 +257,13 @@ public:
} }
} }
static std::string primaryVarName(unsigned pvIdx OPM_OPTIM_UNUSED) static std::string primaryVarName([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
return "foam_concentration"; return "foam_concentration";
} }
static Scalar primaryVarWeight(unsigned pvIdx OPM_OPTIM_UNUSED) static Scalar primaryVarWeight([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
@ -281,14 +280,14 @@ public:
} }
static std::string eqName(unsigned eqIdx OPM_OPTIM_UNUSED) static std::string eqName([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));
return "conti^foam"; return "conti^foam";
} }
static Scalar eqWeight(unsigned eqIdx OPM_OPTIM_UNUSED) static Scalar eqWeight([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));

View File

@ -56,7 +56,6 @@
#include <opm/models/io/vtkdiffusionmodule.hh> #include <opm/models/io/vtkdiffusionmodule.hh>
#include <opm/material/fluidsystems/BlackOilFluidSystem.hpp> #include <opm/material/fluidsystems/BlackOilFluidSystem.hpp>
#include <opm/material/common/Unused.hpp>
#include <sstream> #include <sstream>
#include <string> #include <string>

View File

@ -34,8 +34,6 @@
#include <opm/models/nonlinear/newtonmethod.hh> #include <opm/models/nonlinear/newtonmethod.hh>
#include "blackoilmicpmodules.hh" #include "blackoilmicpmodules.hh"
#include <opm/material/common/Unused.hpp>
namespace Opm::Properties { namespace Opm::Properties {
template <class TypeTag, class MyTypeTag> template <class TypeTag, class MyTypeTag>

View File

@ -47,7 +47,6 @@
#endif #endif
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
@ -548,7 +547,7 @@ public:
} }
} }
static Scalar primaryVarWeight(unsigned pvIdx OPM_OPTIM_UNUSED) static Scalar primaryVarWeight([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
@ -578,7 +577,7 @@ public:
return "conti^polymer_molecularweight"; return "conti^polymer_molecularweight";
} }
static Scalar eqWeight(unsigned eqIdx OPM_OPTIM_UNUSED) static Scalar eqWeight([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));

View File

@ -32,8 +32,6 @@
#include <opm/models/common/multiphasebaseproblem.hh> #include <opm/models/common/multiphasebaseproblem.hh>
#include <opm/material/common/Unused.hpp>
namespace Opm { namespace Opm {
/*! /*!

View File

@ -48,7 +48,6 @@
#endif #endif
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
@ -499,14 +498,14 @@ public:
return pvIdx == solventSaturationIdx; return pvIdx == solventSaturationIdx;
} }
static std::string primaryVarName(unsigned pvIdx OPM_OPTIM_UNUSED) static std::string primaryVarName([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
return "saturation_solvent"; return "saturation_solvent";
} }
static Scalar primaryVarWeight(unsigned pvIdx OPM_OPTIM_UNUSED) static Scalar primaryVarWeight([[maybe_unused]] unsigned pvIdx)
{ {
assert(primaryVarApplies(pvIdx)); assert(primaryVarApplies(pvIdx));
@ -522,14 +521,14 @@ public:
return eqIdx == contiSolventEqIdx; return eqIdx == contiSolventEqIdx;
} }
static std::string eqName(unsigned eqIdx OPM_OPTIM_UNUSED) static std::string eqName([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));
return "conti^solvent"; return "conti^solvent";
} }
static Scalar eqWeight(unsigned eqIdx OPM_OPTIM_UNUSED) static Scalar eqWeight([[maybe_unused]] unsigned eqIdx)
{ {
assert(eqApplies(eqIdx)); assert(eqApplies(eqIdx));

View File

@ -34,7 +34,6 @@
#include <opm/models/common/quantitycallbacks.hh> #include <opm/models/common/quantitycallbacks.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -32,7 +32,6 @@
#include <opm/models/common/quantitycallbacks.hh> #include <opm/models/common/quantitycallbacks.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -33,7 +33,6 @@
#include <opm/models/common/quantitycallbacks.hh> #include <opm/models/common/quantitycallbacks.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -35,7 +35,6 @@
#include <opm/models/discretization/common/fvbaseproperties.hh> #include <opm/models/discretization/common/fvbaseproperties.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -35,7 +35,6 @@
#include <opm/models/utils/parametersystem.hh> #include <opm/models/utils/parametersystem.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -43,7 +43,6 @@
#include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp> #include <opm/material/fluidmatrixinteractions/MaterialTraits.hpp>
#include <opm/material/thermal/NullThermalConductionLaw.hpp> #include <opm/material/thermal/NullThermalConductionLaw.hpp>
#include <opm/material/thermal/NullSolidEnergyLaw.hpp> #include <opm/material/thermal/NullSolidEnergyLaw.hpp>
#include <opm/material/common/Unused.hpp>
namespace Opm { namespace Opm {
template <class TypeTag> template <class TypeTag>

View File

@ -35,7 +35,6 @@
#include <opm/material/fluidmatrixinteractions/NullMaterial.hpp> #include <opm/material/fluidmatrixinteractions/NullMaterial.hpp>
#include <opm/material/common/Means.hpp> #include <opm/material/common/Means.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh> #include <dune/common/fmatrix.hh>

View File

@ -32,7 +32,6 @@
#include <opm/material/densead/Math.hpp> #include <opm/material/densead/Math.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/istl/bvector.hh> #include <dune/istl/bvector.hh>
#include <dune/istl/matrix.hh> #include <dune/istl/matrix.hh>

View File

@ -30,8 +30,6 @@
#include "fvbaseproperties.hh" #include "fvbaseproperties.hh"
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
namespace Opm { namespace Opm {

View File

@ -59,7 +59,6 @@
#include <opm/material/common/MathToolbox.hpp> #include <opm/material/common/MathToolbox.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/common/version.hh> #include <dune/common/version.hh>
@ -1004,7 +1003,8 @@ public:
* This method is purely intented for debugging purposes. If the program is compiled * This method is purely intented for debugging purposes. If the program is compiled
* with optimizations enabled, it becomes a no-op. * with optimizations enabled, it becomes a no-op.
*/ */
void checkConservativeness(Scalar OPM_OPTIM_UNUSED tolerance = -1, bool OPM_OPTIM_UNUSED verbose=false) const void checkConservativeness([[maybe_unused]] Scalar tolerance = -1,
[[maybe_unused]] bool verbose=false) const
{ {
#ifndef NDEBUG #ifndef NDEBUG
Scalar totalBoundaryArea(0.0); Scalar totalBoundaryArea(0.0);

View File

@ -33,8 +33,6 @@
#include <opm/models/discretization/common/linearizationtype.hh> #include <opm/models/discretization/common/linearizationtype.hh>
#include <opm/models/utils/alignedallocator.hh> #include <opm/models/utils/alignedallocator.hh>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <vector> #include <vector>

View File

@ -33,7 +33,6 @@
#include <opm/models/common/multiphasebaseproperties.hh> #include <opm/models/common/multiphasebaseproperties.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
namespace Opm { namespace Opm {
/*! /*!

View File

@ -30,8 +30,6 @@
#include "fvbaseproperties.hh" #include "fvbaseproperties.hh"
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
namespace Opm { namespace Opm {

View File

@ -31,7 +31,6 @@
#include "fvbaseproperties.hh" #include "fvbaseproperties.hh"
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
namespace Opm { namespace Opm {

View File

@ -34,7 +34,6 @@
#include <opm/models/utils/alignedallocator.hh> #include <opm/models/utils/alignedallocator.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/istl/bvector.hh> #include <dune/istl/bvector.hh>
#include <dune/grid/common/geometry.hh> #include <dune/grid/common/geometry.hh>

View File

@ -33,7 +33,6 @@
#include "fvbaseproperties.hh" #include "fvbaseproperties.hh"
#include "linearizationtype.hh" #include "linearizationtype.hh"
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -34,7 +34,6 @@
#include <opm/models/io/restart.hh> #include <opm/models/io/restart.hh>
#include <opm/models/discretization/common/restrictprolong.hh> #include <opm/models/discretization/common/restrictprolong.hh>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <iostream> #include <iostream>

View File

@ -23,8 +23,6 @@
#ifndef EWOMS_COPYRESTRICTPROLONG_HH #ifndef EWOMS_COPYRESTRICTPROLONG_HH
#define EWOMS_COPYRESTRICTPROLONG_HH #define EWOMS_COPYRESTRICTPROLONG_HH
#include <opm/material/common/Unused.hpp>
#if HAVE_DUNE_FEM #if HAVE_DUNE_FEM
#include <dune/fem/space/common/restrictprolonginterface.hh> #include <dune/fem/space/common/restrictprolonginterface.hh>
#endif #endif

View File

@ -30,7 +30,6 @@
#include <opm/models/utils/quadraturegeometries.hh> #include <opm/models/utils/quadraturegeometries.hh>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <dune/grid/common/intersectioniterator.hh> #include <dune/grid/common/intersectioniterator.hh>

View File

@ -37,7 +37,6 @@
#include <opm/material/constraintsolvers/NcpFlash.hpp> #include <opm/material/constraintsolvers/NcpFlash.hpp>
#include <opm/material/fluidstates/CompositionalFluidState.hpp> #include <opm/material/fluidstates/CompositionalFluidState.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -36,7 +36,6 @@
#include <opm/models/parallel/tasklets.hh> #include <opm/models/parallel/tasklets.hh>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <dune/istl/bvector.hh> #include <dune/istl/bvector.hh>

View File

@ -34,8 +34,6 @@
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <dune/common/version.hh> #include <dune/common/version.hh>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <string> #include <string>

View File

@ -32,7 +32,6 @@
#include <opm/models/nonlinear/newtonmethod.hh> #include <opm/models/nonlinear/newtonmethod.hh>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>
#include <algorithm> #include <algorithm>

View File

@ -36,7 +36,6 @@
#include <opm/simulators/linalg/linalgproperties.hh> #include <opm/simulators/linalg/linalgproperties.hh>
#include <opm/material/densead/Math.hpp> #include <opm/material/densead/Math.hpp>
#include <opm/material/common/Unused.hpp>
#include <opm/material/common/Exceptions.hpp> #include <opm/material/common/Exceptions.hpp>

View File

@ -30,8 +30,6 @@
#include <opm/models/utils/propertysystem.hh> #include <opm/models/utils/propertysystem.hh>
#include <opm/material/common/Unused.hpp>
namespace Opm::Properties { namespace Opm::Properties {
template <class TypeTag, class MyTypeTag> template <class TypeTag, class MyTypeTag>

View File

@ -29,8 +29,6 @@
#ifndef EWOMS_GRID_COMM_HANDLES_HH #ifndef EWOMS_GRID_COMM_HANDLES_HH
#define EWOMS_GRID_COMM_HANDLES_HH #define EWOMS_GRID_COMM_HANDLES_HH
#include <opm/material/common/Unused.hpp>
#include <dune/grid/common/datahandleif.hh> #include <dune/grid/common/datahandleif.hh>
#include <dune/common/version.hh> #include <dune/common/version.hh>

View File

@ -46,7 +46,6 @@
#include <opm/material/fluidsystems/LiquidPhase.hpp> #include <opm/material/fluidsystems/LiquidPhase.hpp>
#include <opm/material/fluidsystems/GasPhase.hpp> #include <opm/material/fluidsystems/GasPhase.hpp>
#include <opm/material/fluidsystems/TwoPhaseImmiscibleFluidSystem.hpp> #include <opm/material/fluidsystems/TwoPhaseImmiscibleFluidSystem.hpp>
#include <opm/material/common/Unused.hpp>
#include <sstream> #include <sstream>
#include <string> #include <string>

View File

@ -31,7 +31,6 @@
#include "richardsproperties.hh" #include "richardsproperties.hh"
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp> #include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -35,7 +35,6 @@
#include <opm/material/constraintsolvers/ImmiscibleFlash.hpp> #include <opm/material/constraintsolvers/ImmiscibleFlash.hpp>
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp> #include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
#include <opm/material/common/Valgrind.hpp> #include <opm/material/common/Valgrind.hpp>
#include <opm/material/common/Unused.hpp>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -34,8 +34,6 @@
#include <opm/models/utils/propertysystem.hh> #include <opm/models/utils/propertysystem.hh>
#include <opm/material/common/Unused.hpp>
#if HAVE_QUAD #if HAVE_QUAD
#include <opm/material/common/quad.hpp> #include <opm/material/common/quad.hpp>
#endif // HAVE_QUAD #endif // HAVE_QUAD
@ -985,8 +983,8 @@ public:
} }
template <class ParamType> template <class ParamType>
static bool isSet(const char *propTagName OPM_OPTIM_UNUSED, static bool isSet([[maybe_unused]] const char* propTagName,
const char *paramName OPM_OPTIM_UNUSED, [[maybe_unused]] const char* paramName,
bool errorIfNotRegistered = true) bool errorIfNotRegistered = true)
{ {
@ -1063,7 +1061,7 @@ private:
} }
template <class ParamType> template <class ParamType>
static ParamType retrieve_(const char OPM_OPTIM_UNUSED *propTagName, static ParamType retrieve_([[maybe_unused]] const char* propTagName,
const char *paramName, const char *paramName,
const ParamType& defaultValue, const ParamType& defaultValue,
bool errorIfNotRegistered = true) bool errorIfNotRegistered = true)

View File

@ -27,8 +27,6 @@
#ifndef EWOMS_ISTL_CONVERGENCE_CRITERION_HH #ifndef EWOMS_ISTL_CONVERGENCE_CRITERION_HH
#define EWOMS_ISTL_CONVERGENCE_CRITERION_HH #define EWOMS_ISTL_CONVERGENCE_CRITERION_HH
#include <opm/material/common/Unused.hpp>
#include <dune/common/version.hh> #include <dune/common/version.hh>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>

View File

@ -30,8 +30,6 @@
#include "overlaptypes.hh" #include "overlaptypes.hh"
#include "blacklist.hh" #include "blacklist.hh"
#include <opm/material/common/Unused.hpp>
#include <dune/grid/common/datahandleif.hh> #include <dune/grid/common/datahandleif.hh>
#include <dune/grid/common/gridenums.hh> #include <dune/grid/common/gridenums.hh>
#include <dune/istl/bcrsmatrix.hh> #include <dune/istl/bcrsmatrix.hh>

View File

@ -32,8 +32,6 @@
#include <opm/models/parallel/mpibuffer.hh> #include <opm/models/parallel/mpibuffer.hh>
#include <opm/material/common/Unused.hpp>
#include <dune/grid/common/datahandleif.hh> #include <dune/grid/common/datahandleif.hh>
#include <dune/istl/bcrsmatrix.hh> #include <dune/istl/bcrsmatrix.hh>
#include <dune/istl/scalarproducts.hh> #include <dune/istl/scalarproducts.hh>

View File

@ -29,8 +29,6 @@
#include "overlaptypes.hh" #include "overlaptypes.hh"
#include <opm/material/common/Unused.hpp>
#include <dune/grid/common/datahandleif.hh> #include <dune/grid/common/datahandleif.hh>
#include <dune/grid/common/gridenums.hh> #include <dune/grid/common/gridenums.hh>
#include <dune/istl/bcrsmatrix.hh> #include <dune/istl/bcrsmatrix.hh>

View File

@ -29,8 +29,6 @@
#include "convergencecriterion.hh" #include "convergencecriterion.hh"
#include <opm/material/common/Unused.hpp>
#include <dune/istl/scalarproducts.hh> #include <dune/istl/scalarproducts.hh>
namespace Opm { namespace Opm {

View File

@ -30,8 +30,6 @@
#include "overlaptypes.hh" #include "overlaptypes.hh"
#include "blacklist.hh" #include "blacklist.hh"
#include <opm/material/common/Unused.hpp>
#include <dune/grid/common/datahandleif.hh> #include <dune/grid/common/datahandleif.hh>
#include <dune/grid/common/gridenums.hh> #include <dune/grid/common/gridenums.hh>
#include <dune/istl/bcrsmatrix.hh> #include <dune/istl/bcrsmatrix.hh>

View File

@ -41,14 +41,6 @@
#include <opm/models/discretization/vcfv/vcfvstencil.hh> #include <opm/models/discretization/vcfv/vcfvstencil.hh>
#include <opm/material/common/Unused.hpp>
#if HAVE_DUNE_ALUGRID
#define EWOMS_NO_ALUGRID_UNUSED
#else
#define EWOMS_NO_ALUGRID_UNUSED OPM_UNUSED
#endif
const unsigned dim = 3; const unsigned dim = 3;
using Scalar = double; using Scalar = double;
using QuadratureGeom = Opm::QuadrialteralQuadratureGeometry<Scalar, dim>; using QuadratureGeom = Opm::QuadrialteralQuadratureGeometry<Scalar, dim>;
@ -110,7 +102,7 @@ void testIdenityMapping()
} }
template <class Grid> template <class Grid>
void writeTetrahedronSubControlVolumes(const Grid& EWOMS_NO_ALUGRID_UNUSED grid) void writeTetrahedronSubControlVolumes([[maybe_unused]] const Grid& grid)
{ {
#if HAVE_DUNE_ALUGRID #if HAVE_DUNE_ALUGRID
using GridView = typename Grid::LeafGridView; using GridView = typename Grid::LeafGridView;
@ -196,7 +188,7 @@ void testTetrahedron()
} }
template <class Grid> template <class Grid>
void writeCubeSubControlVolumes(const Grid& EWOMS_NO_ALUGRID_UNUSED grid) void writeCubeSubControlVolumes([[maybe_unused]] const Grid& grid)
{ {
#if HAVE_DUNE_ALUGRID #if HAVE_DUNE_ALUGRID
using GridView = typename Grid::LeafGridView; using GridView = typename Grid::LeafGridView;