Class to facilitate getting values associated with the above/below perforation.
More...
#include <ParallelWellInfo.hpp>
Class to facilitate getting values associated with the above/below perforation.
◆ IndexSet
◆ LocalIndex
◆ RI
◆ Attribute
Enumerator |
---|
owner | |
overlap | |
ownerAbove | |
overlapAbove | |
◆ CommunicateAboveBelow()
◆ beginReset()
void Opm::CommunicateAboveBelow::beginReset |
( |
| ) |
|
◆ clear()
void Opm::CommunicateAboveBelow::clear |
( |
| ) |
|
Clear all the parallel information.
◆ communicateAbove()
std::vector< double > Opm::CommunicateAboveBelow::communicateAbove |
( |
double |
first_value, |
|
|
const double * |
current, |
|
|
std::size_t |
size |
|
) |
| |
Creates an array of values for the perforation above.
- Parameters
-
first_value | Value to use for above of the first perforation |
current | C-array of the values at the perforations |
size | The size of the C-array and the returned vector |
- Returns
- a vector containing the values for the perforation above.
◆ communicateBelow()
std::vector< double > Opm::CommunicateAboveBelow::communicateBelow |
( |
double |
first_value, |
|
|
const double * |
current, |
|
|
std::size_t |
size |
|
) |
| |
Creates an array of values for the perforation below.
- Parameters
-
first_value | Value to use for above of the first perforation |
current | C-array of the values at the perforations |
size | The size of the C-array and the returned vector |
- Returns
- a vector containing the values for the perforation above.
◆ endReset()
int Opm::CommunicateAboveBelow::endReset |
( |
| ) |
|
Indicates that the index information is complete.
Sets up the commmunication structures to be used by communicate()
- Returns
- The number of local perforations
◆ getIndexSet()
const IndexSet & Opm::CommunicateAboveBelow::getIndexSet |
( |
| ) |
const |
Get index set for the local perforations.
◆ numLocalPerfs()
int Opm::CommunicateAboveBelow::numLocalPerfs |
( |
| ) |
const |
◆ partialSumPerfValues()
template<class RAIterator >
void Opm::CommunicateAboveBelow::partialSumPerfValues |
( |
RAIterator |
begin, |
|
|
RAIterator |
end |
|
) |
| const |
Do a (in place) partial sum on values attached to all perforations.
For distributed wells this may include perforations stored elsewhere. The result is stored in ther range given as the parameters
- Parameters
-
begin | The start of the range |
ebd | The end of the range |
- Template Parameters
-
RAIterator | The type og random access iterator |
◆ pushBackEclIndex()
void Opm::CommunicateAboveBelow::pushBackEclIndex |
( |
int |
above, |
|
|
int |
current, |
|
|
bool |
owner = true |
|
) |
| |
Adds information about original index of the perforations in ECL Schedule.
- Warning
- Theses indices need to be push in the same order as they appear in the ECL well specifiation. Use -1 if there is no perforation above.
- Parameters
-
above | The ECL index of the next open perforation above. |
current | The ECL index of the current open perforation. |
The documentation for this class was generated from the following file: