opm-common
Loading...
Searching...
No Matches
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.
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.
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.


The documentation for this class was generated from the following files:
  • opm/input/eclipse/EclipseState/Grid/NNC.hpp
  • opm/input/eclipse/EclipseState/Grid/NNC.cpp