Opm::LgrTransIndex< N > Class Template Reference

#include <LgrOutputTransGather.hpp>

Inheritance diagram for Opm::LgrTransIndex< N >:
Inheritance graph

Public Types

using Key = std::array< int, N >
 

Public Member Functions

 LgrTransIndex ()=default
 
 LgrTransIndex (std::vector< std::pair< Key, double > > records)
 
const double * find (const Key &key) const
 

Detailed Description

template<std::size_t N>
class Opm::LgrTransIndex< N >

Key-sorted index over gathered LGR connection records.

The I/O rank holds every connection of the global grid and looks each one up once per output pass. The records are sorted on their key only and searched with std::lower_bound. The key is the level-Cartesian index tuple (see GatheredLgrOutputTrans); values are transmissibilities.

Member Typedef Documentation

◆ Key

template<std::size_t N>
using Opm::LgrTransIndex< N >::Key = std::array<int, N>

Constructor & Destructor Documentation

◆ LgrTransIndex() [1/2]

template<std::size_t N>
Opm::LgrTransIndex< N >::LgrTransIndex ( )
default

◆ LgrTransIndex() [2/2]

template<std::size_t N>
Opm::LgrTransIndex< N >::LgrTransIndex ( std::vector< std::pair< Key, double > >  records)
inlineexplicit

Build the index from the gathered (key, value) records. Keys are unique by construction (every connection is recorded by exactly one rank).

Member Function Documentation

◆ find()

template<std::size_t N>
const double * Opm::LgrTransIndex< N >::find ( const Key &  key) const
inline
Returns
pointer to the value for key, or nullptr if absent.

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