Opm::SubDomainIndices Struct Reference

#include <SubDomain.hpp>

Inheritance diagram for Opm::SubDomainIndices:
Inheritance graph

Public Member Functions

 SubDomainIndices (const int i, std::vector< int > &&c, std::vector< bool > &&in, bool s)
 
 SubDomainIndices (const int i, std::vector< int > &&c, std::vector< int > &&ov, std::vector< bool > &&in, bool s)
 
bool hasOverlap () const
 

Public Attributes

int index
 
std::vector< int > cells
 
std::vector< int > interior_cells
 
std::vector< bool > interior
 
bool skip
 

Detailed Description

Representing a part of a grid, in a way suitable for performing local solves.

A subdomain owns a set of cells (its interior) and may in addition include overlap cells owned by neighbouring subdomains on the same MPI rank. Overlap cells are unknowns of the local nonlinear problem, but convergence, ownership of wells and the result of the local solve are defined by the interior cells only.

Constructor & Destructor Documentation

◆ SubDomainIndices() [1/2]

Opm::SubDomainIndices::SubDomainIndices ( const int  i,
std::vector< int > &&  c,
std::vector< bool > &&  in,
bool  s 
)
inline

◆ SubDomainIndices() [2/2]

Opm::SubDomainIndices::SubDomainIndices ( const int  i,
std::vector< int > &&  c,
std::vector< int > &&  ov,
std::vector< bool > &&  in,
bool  s 
)
inline

References cells, and interior_cells.

Member Function Documentation

◆ hasOverlap()

bool Opm::SubDomainIndices::hasOverlap ( ) const
inline

Member Data Documentation

◆ cells

std::vector<int> Opm::SubDomainIndices::cells

◆ index

◆ interior

std::vector<bool> Opm::SubDomainIndices::interior

◆ interior_cells

std::vector<int> Opm::SubDomainIndices::interior_cells

Referenced by hasOverlap(), and SubDomainIndices().

◆ skip

bool Opm::SubDomainIndices::skip

The documentation for this struct was generated from the following file: