mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix Build After "Unused.hpp" Removal
Needed for configurations that don't have Dune-localfunctions or which *do* have ALUGrid.
This commit is contained in:
parent
000ed8b8ae
commit
326449fe0b
@ -345,9 +345,9 @@ public:
|
|||||||
* \copydoc FvBaseMultiPhaseProblem::temperature
|
* \copydoc FvBaseMultiPhaseProblem::temperature
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
Scalar temperature(const Context& context OPM_UNUSED,
|
Scalar temperature([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return temperature_; }
|
{ return temperature_; }
|
||||||
|
|
||||||
// \}
|
// \}
|
||||||
@ -361,9 +361,9 @@ public:
|
|||||||
* \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability
|
* \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
const DimMatrix& intrinsicPermeability(const Context& context OPM_UNUSED,
|
const DimMatrix& intrinsicPermeability([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return matrixK_; }
|
{ return matrixK_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -372,18 +372,18 @@ public:
|
|||||||
* \copydoc Doxygen::contextParams
|
* \copydoc Doxygen::contextParams
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
const DimMatrix& fractureIntrinsicPermeability(const Context& context OPM_UNUSED,
|
const DimMatrix& fractureIntrinsicPermeability([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return fractureK_; }
|
{ return fractureK_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \copydoc FvBaseMultiPhaseProblem::porosity
|
* \copydoc FvBaseMultiPhaseProblem::porosity
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
Scalar porosity(const Context& context OPM_UNUSED,
|
Scalar porosity([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return matrixPorosity_; }
|
{ return matrixPorosity_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -392,18 +392,18 @@ public:
|
|||||||
* \copydoc Doxygen::contextParams
|
* \copydoc Doxygen::contextParams
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
Scalar fracturePorosity(const Context& context OPM_UNUSED,
|
Scalar fracturePorosity([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return fracturePorosity_; }
|
{ return fracturePorosity_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \copydoc FvBaseMultiPhaseProblem::materialLawParams
|
* \copydoc FvBaseMultiPhaseProblem::materialLawParams
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
const MaterialLawParams& materialLawParams(const Context& context OPM_UNUSED,
|
const MaterialLawParams& materialLawParams([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return matrixMaterialParams_; }
|
{ return matrixMaterialParams_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -412,9 +412,9 @@ public:
|
|||||||
* \copydoc Doxygen::contextParams
|
* \copydoc Doxygen::contextParams
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
const MaterialLawParams& fractureMaterialLawParams(const Context& context OPM_UNUSED,
|
const MaterialLawParams& fractureMaterialLawParams([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return fractureMaterialParams_; }
|
{ return fractureMaterialParams_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -436,10 +436,10 @@ public:
|
|||||||
* \param timeIdx The index used by the time discretization.
|
* \param timeIdx The index used by the time discretization.
|
||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
Scalar fractureWidth(const Context& context OPM_UNUSED,
|
Scalar fractureWidth([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx1 OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx1,
|
||||||
unsigned spaceIdx2 OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx2,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return fractureWidth_; }
|
{ return fractureWidth_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -447,9 +447,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
const ThermalConductionLawParams&
|
const ThermalConductionLawParams&
|
||||||
thermalConductionLawParams(const Context& context OPM_UNUSED,
|
thermalConductionLawParams([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return thermalConductionParams_; }
|
{ return thermalConductionParams_; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -459,9 +459,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
const SolidEnergyLawParams&
|
const SolidEnergyLawParams&
|
||||||
solidEnergyLawParams(const Context& context OPM_UNUSED,
|
solidEnergyLawParams([[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ return solidEnergyParams_; }
|
{ return solidEnergyParams_; }
|
||||||
|
|
||||||
// \}
|
// \}
|
||||||
@ -569,9 +569,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
void initial(PrimaryVariables& values,
|
void initial(PrimaryVariables& values,
|
||||||
const Context& context OPM_UNUSED,
|
[[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{
|
{
|
||||||
FluidState fluidState;
|
FluidState fluidState;
|
||||||
fluidState.setTemperature(temperature_);
|
fluidState.setTemperature(temperature_);
|
||||||
@ -593,9 +593,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <class Context>
|
template <class Context>
|
||||||
void source(RateVector& rate,
|
void source(RateVector& rate,
|
||||||
const Context& context OPM_UNUSED,
|
[[maybe_unused]] const Context& context,
|
||||||
unsigned spaceIdx OPM_UNUSED,
|
[[maybe_unused]] unsigned spaceIdx,
|
||||||
unsigned timeIdx OPM_UNUSED) const
|
[[maybe_unused]] unsigned timeIdx) const
|
||||||
{ rate = Scalar(0.0); }
|
{ rate = Scalar(0.0); }
|
||||||
|
|
||||||
// \}
|
// \}
|
||||||
|
@ -45,12 +45,6 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef HAVE_DUNE_LOCALFUNCTIONS
|
|
||||||
#define EWOMS_NO_LOCALFUNCTIONS_UNUSED
|
|
||||||
#else
|
|
||||||
#define EWOMS_NO_LOCALFUNCTIONS_UNUSED OPM_UNUSED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
/*!
|
/*!
|
||||||
* \ingroup FiniteElementDiscretizations
|
* \ingroup FiniteElementDiscretizations
|
||||||
@ -96,8 +90,8 @@ public:
|
|||||||
* \param elemCtx The current execution context
|
* \param elemCtx The current execution context
|
||||||
*/
|
*/
|
||||||
template <bool prepareValues = true, bool prepareGradients = true>
|
template <bool prepareValues = true, bool prepareGradients = true>
|
||||||
void prepare(const ElementContext& elemCtx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
void prepare([[maybe_unused]] const ElementContext& elemCtx,
|
||||||
unsigned timeIdx EWOMS_NO_LOCALFUNCTIONS_UNUSED)
|
[[maybe_unused]] unsigned timeIdx)
|
||||||
{
|
{
|
||||||
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
||||||
#if !HAVE_DUNE_LOCALFUNCTIONS
|
#if !HAVE_DUNE_LOCALFUNCTIONS
|
||||||
@ -156,9 +150,9 @@ public:
|
|||||||
* freedom
|
* freedom
|
||||||
*/
|
*/
|
||||||
template <class QuantityCallback>
|
template <class QuantityCallback>
|
||||||
auto calculateScalarValue(const ElementContext& elemCtx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
auto calculateScalarValue([[maybe_unused]] const ElementContext& elemCtx,
|
||||||
unsigned fapIdx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
[[maybe_unused]] unsigned fapIdx,
|
||||||
const QuantityCallback& quantityCallback EWOMS_NO_LOCALFUNCTIONS_UNUSED) const
|
[[maybe_unused]] const QuantityCallback& quantityCallback) const
|
||||||
-> typename std::remove_reference<typename QuantityCallback::ResultType>::type
|
-> typename std::remove_reference<typename QuantityCallback::ResultType>::type
|
||||||
{
|
{
|
||||||
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
||||||
@ -201,9 +195,9 @@ public:
|
|||||||
* freedom
|
* freedom
|
||||||
*/
|
*/
|
||||||
template <class QuantityCallback>
|
template <class QuantityCallback>
|
||||||
auto calculateVectorValue(const ElementContext& elemCtx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
auto calculateVectorValue([[maybe_unused]] const ElementContext& elemCtx,
|
||||||
unsigned fapIdx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
[[maybe_unused]] unsigned fapIdx,
|
||||||
const QuantityCallback& quantityCallback EWOMS_NO_LOCALFUNCTIONS_UNUSED) const
|
[[maybe_unused]] const QuantityCallback& quantityCallback) const
|
||||||
-> typename std::remove_reference<typename QuantityCallback::ResultType>::type
|
-> typename std::remove_reference<typename QuantityCallback::ResultType>::type
|
||||||
{
|
{
|
||||||
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
||||||
@ -257,10 +251,10 @@ public:
|
|||||||
* freedom
|
* freedom
|
||||||
*/
|
*/
|
||||||
template <class QuantityCallback, class EvalDimVector>
|
template <class QuantityCallback, class EvalDimVector>
|
||||||
void calculateGradient(EvalDimVector& quantityGrad EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
void calculateGradient([[maybe_unused]] EvalDimVector& quantityGrad,
|
||||||
const ElementContext& elemCtx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
[[maybe_unused]] const ElementContext& elemCtx,
|
||||||
unsigned fapIdx EWOMS_NO_LOCALFUNCTIONS_UNUSED,
|
[[maybe_unused]] unsigned fapIdx,
|
||||||
const QuantityCallback& quantityCallback EWOMS_NO_LOCALFUNCTIONS_UNUSED) const
|
[[maybe_unused]] const QuantityCallback& quantityCallback) const
|
||||||
{
|
{
|
||||||
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
if (getPropValue<TypeTag, Properties::UseP1FiniteElementGradients>()) {
|
||||||
#if !HAVE_DUNE_LOCALFUNCTIONS
|
#if !HAVE_DUNE_LOCALFUNCTIONS
|
||||||
@ -360,6 +354,4 @@ P1FeGradientCalculator<TypeTag>::feCache_;
|
|||||||
#endif
|
#endif
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
|
||||||
#undef EWOMS_NO_LOCALFUNCTIONS_UNUSED
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user