opm-common
Opm::NNCDataContainerDiffGrid Class Reference
Inheritance diagram for Opm::NNCDataContainerDiffGrid:
Opm::NNCDataContainer

Public Member Functions

bool addNNC (const size_t cell1, const size_t cell2, const double trans) override
 Inserts a cross-grid NNC entry without enforcing any cell ordering, since cell1 and cell2 belong to different grids and swapping them would lose the grid-association information. More...
 
void swap_adj (std::size_t grid1, std::size_t grid2)
 Swaps cell1 and cell2 in every entry when grid1 > grid2, so that the container is always stored in normalised (min_grid, max_grid) key order. More...
 
bool operator== (const NNCDataContainerDiffGrid &other) const
 
- Public Member Functions inherited from Opm::NNCDataContainer
bool addNNC (const NNCdata nnc_data)
 Inserts a pre-built NNCdata entry directly into the container.
 
const std::vector< NNCdata > & input () const
 
bool operator== (const NNCDataContainer &other) const
 

Additional Inherited Members

- Protected Attributes inherited from Opm::NNCDataContainer
std::vector< NNCdatannc_container
 

Member Function Documentation

◆ addNNC()

bool Opm::NNCDataContainerDiffGrid::addNNC ( const size_t  cell1,
const size_t  cell2,
const double  trans 
)
overridevirtual

Inserts a cross-grid NNC entry without enforcing any cell ordering, since cell1 and cell2 belong to different grids and swapping them would lose the grid-association information.

Reimplemented from Opm::NNCDataContainer.

◆ swap_adj()

void Opm::NNCDataContainerDiffGrid::swap_adj ( std::size_t  grid1,
std::size_t  grid2 
)

Swaps cell1 and cell2 in every entry when grid1 > grid2, so that the container is always stored in normalised (min_grid, max_grid) key order.


The documentation for this class was generated from the following files: