Computes the temperature, pressure, and counter increment.
More...
#include <RegionAttributeHelpers.hpp>
|
std::tuple< double, double, double, double, int > | operator() (const std::vector< double > &pressure, const std::vector< double > &temperature, const std::vector< double > &rs, const std::vector< double > &rv, const std::vector< double > &ownership, std::size_t cell) |
| Computes the temperature, pressure, and counter increment. More...
|
|
template<bool is_parallel>
struct Opm::RegionAttributeHelpers::AverageIncrementCalculator< is_parallel >
Computes the temperature, pressure, and counter increment.
In a parallel run only cells owned contribute to the cell average.
- Template Parameters
-
is_parallel | Whether this is a parallel run. |
◆ operator()()
template<bool is_parallel>
std::tuple< double, double, double, double, int > Opm::RegionAttributeHelpers::AverageIncrementCalculator< is_parallel >::operator() |
( |
const std::vector< double > & |
pressure, |
|
|
const std::vector< double > & |
temperature, |
|
|
const std::vector< double > & |
rs, |
|
|
const std::vector< double > & |
rv, |
|
|
const std::vector< double > & |
ownership, |
|
|
std::size_t |
cell |
|
) |
| |
|
inline |
Computes the temperature, pressure, and counter increment.
- Parameters
-
pressure | The pressure. |
temperature | The temperature. |
rs | The rs. |
rv | The rv. |
cell | The current cell index. |
ownership | A vector indicating whether a cell is owned by this process (value 1), or not (value 0). |
cell | The cell index. |
The documentation for this struct was generated from the following file: