Data array policy that extracts the array values from an ECLIPSE input deck or returns a user specified default value if the data vector is not present in a particular input deck.
More...
#include <CompressedPropertyAccess.hpp>
|
typedef T | value_type |
| Publicly accessible data array element type.
|
|
typedef std::size_t | size_type |
| Index type for accessing data array.
|
|
template<typename T>
class Opm::GridPropertyAccess::ArrayPolicy::ExtractFromDeck< T >
Data array policy that extracts the array values from an ECLIPSE input deck or returns a user specified default value if the data vector is not present in a particular input deck.
Provides read-only access to the underlying data.
- Template Parameters
-
T | Array element type. Must be int or double . |
◆ ExtractFromDeck()
template<typename T >
template<class PropertyContainer >
Constructor.
- Template Parameters
-
PropertyContainer | Pointer type representing collection of (global) grid properties. Typically EclipseStatePtr or EclipseStateConstPtr . Must implement methods hasDeckIntGridProperty and getIntGridProperty if T is int , or hasDeckDoubleGridProperty and getDoubleGridProperty if T is double . |
- Parameters
-
[in] | ecl | Property container. |
[in] | kw | ECLIPSE keyword from which to extract data array. |
[in] | dlft | Default/fall-back data array value if kw is not defined. |
◆ operator[]()
Read-only data array access.
- Parameters
-
[in] | i | Array index. Assumed to identify a global (uncompressed) cell. |
- Returns
- Data array element at global index
i
if present in input or user specified fall-back value if not.
The documentation for this class was generated from the following file: