|
My Project
|
Parallel frontend to the field properties. More...
#include <ParallelEclipseState.hpp>
Public Member Functions | |
| ParallelFieldPropsManager (FieldPropsManager &manager) | |
| Constructor. | |
| ParallelFieldPropsManager (FieldPropsManager &manager, Parallel::Communication comm) | |
| Constructor. | |
| std::vector< int > | actnum () const override |
| Returns actnum vector. | |
| void | reset_actnum (const std::vector< int > &actnum) override |
| Reset the actnum vector. | |
| std::vector< double > | porv (bool global=false) const override |
| Returns the pore volume vector. | |
| const std::vector< int > & | get_int (const std::string &keyword) const override |
| Returns an int property using compressed indices. | |
| const std::vector< double > & | get_double (const std::string &keyword) const override |
| Returns a double property using compressed indices. | |
| std::vector< int > | get_global_int (const std::string &keyword) const override |
| Returns an int property using global cartesian indices. | |
| std::vector< double > | get_global_double (const std::string &keyword) const override |
| Returns a double property using global cartesian indices. | |
| bool | has_int (const std::string &keyword) const override |
| Check if an integer property is available. | |
| bool | has_double (const std::string &keyword) const override |
| Check if a double property is available. | |
| template<class T > | |
| void | resetCartesianMapper (const T *mapper) |
| Resets the underlying cartesian mapper \detail This has to be the cartesian mapper of the distributed grid. | |
| bool | tran_active (const std::string &keyword) const override |
| void | apply_tran (const std::string &keyword, std::vector< double > &trans) const override |
| void | copyTran (const FieldPropsManager &from) |
| template<class Serializer > | |
| void | serializeOp (Serializer &serializer) |
Protected Attributes | |
| std::map< std::string, Fieldprops::FieldData< int > > | m_intProps |
| Map of integer properties in process-local compressed indices. | |
| std::map< std::string, Fieldprops::FieldData< double > > | m_doubleProps |
| Map of double properties in process-local compressed indices. | |
| FieldPropsManager & | m_manager |
| Underlying field property manager (only used on root process). | |
| Parallel::Communication | m_comm |
| Collective communication handler. | |
| std::function< int(void)> | m_activeSize |
| active size function of the grid | |
| std::function< int(const int)> | m_local2Global |
| mapping from local to global cartesian indices | |
| std::unordered_map< std::string, Fieldprops::TranCalculator > | m_tran |
| calculators map | |
Friends | |
| class | ParallelEclipseState |
| Friend so props can be setup. | |
| template<class Grid > | |
| class | PropsCentroidsDataHandle |
| Friend to set up props. | |
Parallel frontend to the field properties.
This is a parallel frontend to the mpi-unaware FieldPropsManager in opm-common. It contains process-local field properties on each process using compressed indexing.
| Opm::ParallelFieldPropsManager::ParallelFieldPropsManager | ( | FieldPropsManager & | manager | ) |
Constructor.
| manager | The field property manager to wrap. |
| Opm::ParallelFieldPropsManager::ParallelFieldPropsManager | ( | FieldPropsManager & | manager, |
| Parallel::Communication | comm | ||
| ) |
Constructor.
| manager | The field property manager to wrap. |
|
override |
Returns actnum vector.
If called on non-root process an empty vector is returned
|
override |
Returns a double property using compressed indices.
| keyword | Name of property |
|
override |
Returns a double property using global cartesian indices.
| keyword | Name of property |
The vector is broadcast from root process
|
override |
Returns an int property using global cartesian indices.
| keyword | Name of property |
The vector is broadcast from root process
|
override |
Returns an int property using compressed indices.
| keyword | Name of property |
Check if a double property is available.
| keyword | Name of property |
Check if an integer property is available.
| keyword | Name of property |
Reset the actnum vector.
Can only be called on root process
|
inline |
Resets the underlying cartesian mapper \detail This has to be the cartesian mapper of the distributed grid.
It will be used to autocreate properties not explicitly stored.
| T | The type of the cartesian mapper |
| mapper | The cartesian mapper of the distributed grid |