mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Mark non-template functions in headers as 'inline'
This commit is contained in:
parent
99d3ca24bb
commit
7090b58f03
@ -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];
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user