make the member functions return a const reference.

This commit is contained in:
Liu Ming 2014-03-19 09:23:20 +08:00
parent 1e41e58ce7
commit 9204434a4d
2 changed files with 4 additions and 4 deletions

View File

@ -59,13 +59,13 @@ namespace Opm
return ads_index_;
}
std::vector<double>
const std::vector<double>&
PolymerProperties::shearWaterVelocity() const
{
return water_vel_vals_;
}
std::vector<double>
const std::vector<double>&
PolymerProperties::shearVrf() const
{
return shear_vrf_vals_;

View File

@ -164,9 +164,9 @@ namespace Opm
int adsIndex() const;
std::vector<double> shearWaterVelocity() const;
const std::vector<double>& shearWaterVelocity() const;
std::vector<double> shearVrf() const;
const std::vector<double>& shearVrf() const;
double viscMult(double c) const;