Pass table argument to VFP getFLo()

This commit is contained in:
Joakim Hove
2021-02-15 19:56:55 +01:00
parent 6383f3c1ac
commit fda1d65494
7 changed files with 20 additions and 22 deletions

View File

@@ -3726,9 +3726,8 @@ namespace Opm
};
// Make the flo() function.
auto flo_type = table.getFloType();
auto flo = [flo_type](const std::vector<double>& rates) {
return detail::getFlo(rates[Water], rates[Oil], rates[Gas], flo_type);
auto flo = [&table](const std::vector<double>& rates) {
return detail::getFlo(table, rates[Water], rates[Oil], rates[Gas]);
};
// Make the frates() function.
@@ -3932,9 +3931,8 @@ namespace Opm
};
// Make the flo() function.
auto flo_type = table.getFloType();
auto flo = [flo_type](const std::vector<double>& rates) {
return detail::getFlo(rates[Water], rates[Oil], rates[Gas], flo_type);
auto flo = [&table](const std::vector<double>& rates) {
return detail::getFlo(table, rates[Water], rates[Oil], rates[Gas]);
};
// Make the frates() function.