mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-30 02:27:55 -05:00
VFPProdProperties: use appropriate Scalar type
This commit is contained in:
@@ -202,7 +202,7 @@ bhp(const int table_id,
|
||||
detail::VFPEvaluation bhp_val = VFPHelpers<Scalar>::interpolate(table, flo_i, thp_i, wfr_i,
|
||||
gfr_i, alq_i);
|
||||
|
||||
bhp = (bhp_val.dwfr * wfr) + (bhp_val.dgfr * gfr) - (std::max(0.0, bhp_val.dflo) * flo);
|
||||
bhp = (bhp_val.dwfr * wfr) + (bhp_val.dgfr * gfr) - (std::max(Scalar{0.0}, bhp_val.dflo) * flo);
|
||||
bhp.setValue(bhp_val.value);
|
||||
return bhp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user