Mark non-template functions in headers as 'inline'

This commit is contained in:
Bård Skaflestad 2015-09-04 15:04:13 +02:00
parent 99d3ca24bb
commit 7090b58f03
2 changed files with 5 additions and 4 deletions

View File

@ -887,9 +887,9 @@ namespace Opm
}
/// Return true if capillary pressure function is constant
bool isConstPc(const BlackoilPropertiesInterface& props,
const int phase,
const int cell)
inline bool isConstPc(const BlackoilPropertiesInterface& props,
const int phase,
const int cell)
{
// Find minimum and maximum saturations.
double sminarr[BlackoilPhases::MaxNumPhases];

View File

@ -777,7 +777,8 @@ namespace Opm
/// Convert saturations from a vector of individual phase saturation vectors
/// to an interleaved format where all values for a given cell come before all
/// values for the next cell, all in a single vector.
std::vector<double> convertSats(const std::vector< std::vector<double> >& sat)
inline std::vector<double>
convertSats(const std::vector< std::vector<double> >& sat)
{
const int np = sat.size();
const int nc = sat[0].size();