#include <FieldProps.hpp>

Classes

struct  FieldData
 
struct  FieldDataManager
 
struct  MultregpRecord
 

Public Types

enum class  ScalarOperation {
  ADD = 1 , EQUAL = 2 , MUL = 3 , MIN = 4 ,
  MAX = 5
}
 
enum class  GetStatus { OK = 1 , INVALID_DATA = 2 , MISSING_KEYWORD = 3 , NOT_SUPPPORTED_KEYWORD = 4 }
 

Public Member Functions

 FieldProps (const Deck &deck, const Phases &phases, const EclipseGrid &grid, const TableManager &table_arg)
 
void reset_actnum (const std::vector< int > &actnum)
 
const std::stringdefault_region () const
 
std::vector< int > actnum ()
 
template<typename T >
bool has (const std::string &keyword) const
 
template<typename T >
std::vector< std::stringkeys () const
 
template<typename T >
FieldDataManager< T > try_get (const std::string &keyword)
 
template<typename T >
const std::vector< T > & get (const std::string &keyword)
 
template<typename T >
std::vector< T > get_copy (const std::string &keyword, bool global)
 
template<typename T >
std::vector< booldefaulted (const std::string &keyword)
 
template<typename T >
std::vector< T > global_copy (const std::vector< T > &data) const
 
std::size_t num_int () const
 
std::size_t num_double () const
 

Static Public Member Functions

template<typename T >
static void compress (std::vector< T > &data, const std::vector< bool > &active_map)
 
template<typename T >
static bool supported (const std::string &keyword)
 

Public Attributes

std::size_t active_size
 
std::size_t global_size
 

Member Enumeration Documentation

◆ GetStatus

enum class Opm::FieldProps::GetStatus
strong
Enumerator
OK 
INVALID_DATA 
MISSING_KEYWORD 
NOT_SUPPPORTED_KEYWORD 

◆ ScalarOperation

Enumerator
ADD 
EQUAL 
MUL 
MIN 
MAX 

Constructor & Destructor Documentation

◆ FieldProps()

Opm::FieldProps::FieldProps ( const Deck deck,
const Phases phases,
const EclipseGrid grid,
const TableManager table_arg 
)

Member Function Documentation

◆ actnum()

std::vector< int > Opm::FieldProps::actnum ( )

◆ compress()

template<typename T >
static void Opm::FieldProps::compress ( std::vector< T > &  data,
const std::vector< bool > &  active_map 
)
inlinestatic

◆ default_region()

const std::string & Opm::FieldProps::default_region ( ) const

◆ defaulted()

template<typename T >
std::vector< bool > Opm::FieldProps::defaulted ( const std::string keyword)
inline

◆ get()

template<typename T >
const std::vector< T > & Opm::FieldProps::get ( const std::string keyword)
inline

◆ get_copy()

template<typename T >
std::vector< T > Opm::FieldProps::get_copy ( const std::string keyword,
bool  global 
)
inline

◆ global_copy()

template<typename T >
std::vector< T > Opm::FieldProps::global_copy ( const std::vector< T > &  data) const
inline

References exprtk::information::data(), and global_size.

Referenced by get_copy().

◆ has()

template<typename T >
bool Opm::FieldProps::has ( const std::string keyword) const

◆ keys()

template<typename T >
std::vector< std::string > Opm::FieldProps::keys ( ) const

◆ num_double()

std::size_t Opm::FieldProps::num_double ( ) const
inline

◆ num_int()

std::size_t Opm::FieldProps::num_int ( ) const
inline

◆ reset_actnum()

void Opm::FieldProps::reset_actnum ( const std::vector< int > &  actnum)

◆ supported()

template<typename T >
static bool Opm::FieldProps::supported ( const std::string keyword)
static

◆ try_get()

template<typename T >
FieldDataManager< T > Opm::FieldProps::try_get ( const std::string keyword)
inline

Member Data Documentation

◆ active_size

std::size_t Opm::FieldProps::active_size

◆ global_size

std::size_t Opm::FieldProps::global_size

Referenced by global_copy().


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