more or less getting the old implementation in

and compile now.
This commit is contained in:
Kai Bao
2017-06-15 17:19:49 +02:00
parent 0cf6699591
commit 2d02503091
8 changed files with 116 additions and 19 deletions

View File

@@ -35,7 +35,7 @@ namespace Opm {
namespace wellhelpers
{
inline
double rateToCompare(const std::vector<double>& well_phase_flow_rate,
const int well,
@@ -147,6 +147,15 @@ namespace Opm {
return dp;
}
inline
double computeHydrostaticCorrection(const double well_ref_depth, const double vfp_ref_depth,
const double rho, const double gravity) {
const double dh = vfp_ref_depth - well_ref_depth;
const double dp = rho * gravity * dh;
return dp;
}
template <class Vector>
inline
Vector computeHydrostaticCorrection(const Wells& wells, const Vector vfp_ref_depth,