mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
change the order of OPM_UNUSED and variable name
it seems like some compilers (GCC 4.9.2?) are picky about this and require ```c++ TypeName VariableName __attribute__ ((__unused__)) ```
This commit is contained in:
@@ -271,27 +271,27 @@ public:
|
||||
* \copydoc FvBaseMultiPhaseProblem::intrinsicPermeability
|
||||
*/
|
||||
template <class Context>
|
||||
const DimMatrix& intrinsicPermeability(const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
const DimMatrix& intrinsicPermeability(const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{ return K_; }
|
||||
|
||||
/*!
|
||||
* \copydoc ForchheimerBaseProblem::ergunCoefficient
|
||||
*/
|
||||
template <class Context>
|
||||
Scalar ergunCoefficient(const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
Scalar ergunCoefficient(const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{ return 0.3866; }
|
||||
|
||||
/*!
|
||||
* \copydoc FvBaseMultiPhaseProblem::porosity
|
||||
*/
|
||||
template <class Context>
|
||||
Scalar porosity(const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
Scalar porosity(const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{ return 0.558; }
|
||||
|
||||
/*!
|
||||
@@ -299,18 +299,18 @@ public:
|
||||
*/
|
||||
template <class Context>
|
||||
const MaterialLawParams&
|
||||
materialLawParams(const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
materialLawParams(const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{ return materialParams_; }
|
||||
|
||||
/*!
|
||||
* \copydoc FvBaseMultiPhaseProblem::temperature
|
||||
*/
|
||||
template <class Context>
|
||||
Scalar temperature(const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
Scalar temperature(const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{ return temperature_; }
|
||||
|
||||
//! \}
|
||||
@@ -361,9 +361,9 @@ public:
|
||||
*/
|
||||
template <class Context>
|
||||
void initial(PrimaryVariables& values,
|
||||
const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{
|
||||
// assign the primary variables
|
||||
values.assignNaive(initialFluidState_);
|
||||
@@ -377,9 +377,9 @@ public:
|
||||
*/
|
||||
template <class Context>
|
||||
void source(RateVector& rate,
|
||||
const Context& OPM_UNUSED context,
|
||||
unsigned OPM_UNUSED spaceIdx,
|
||||
unsigned OPM_UNUSED timeIdx) const
|
||||
const Context& context OPM_UNUSED,
|
||||
unsigned spaceIdx OPM_UNUSED,
|
||||
unsigned timeIdx OPM_UNUSED) const
|
||||
{ rate = Scalar(0.0); }
|
||||
|
||||
//! \}
|
||||
|
||||
Reference in New Issue
Block a user