Opm::CollectDataOnIORank< Grid, EquilGrid, GridView > Class Template Reference

#include <CollectDataOnIORank.hpp>

Inheritance diagram for Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >:
Inheritance graph

Public Types

enum  { ioRank = 0 }
 
using CollectiveCommunication = typename Grid::CollectiveCommunication
 
using P2PCommunicatorType = Dune::Point2PointCommunicator< Dune::SimpleMessageBuffer >
 
using IndexMapType = std::vector< int >
 
using IndexMapStorageType = std::vector< IndexMapType >
 

Public Member Functions

 CollectDataOnIORank (const Grid &grid, const EquilGrid *equilGrid, const GridView &gridView, const Dune::CartesianIndexMapper< Grid > &cartMapper, const Dune::CartesianIndexMapper< EquilGrid > *equilCartMapper, const std::set< std::string > &fipRegionsInterregFlow={})
 
void collect (const data::Solution &localCellData, const std::map< std::pair< std::string, int >, double > &localBlockData, const data::Wells &localWellData, const data::WellBlockAveragePressures &localWBPData, const data::GroupAndNetworkValues &localGroupAndNetworkData, const data::Aquifers &localAquiferData, const WellTestState &localWellTestState, const InterRegFlowMap &interRegFlows, const std::array< FlowsData< double >, 3 > &localFlowsn, const std::array< FlowsData< double >, 3 > &localFloresn)
 
const std::map< std::pair< std::string, int >, double > & globalBlockData () const
 
const data::Solution & globalCellData () const
 
data::Solution & globalCellData ()
 
const data::Wells & globalWellData () const
 
const data::WellBlockAveragePressures & globalWBPData () const
 
const data::GroupAndNetworkValues & globalGroupAndNetworkData () const
 
const data::Aquifers & globalAquiferData () const
 
const WellTestState & globalWellTestState () const
 
InterRegFlowMapglobalInterRegFlows ()
 
const InterRegFlowMapglobalInterRegFlows () const
 
const std::array< FlowsData< double >, 3 > & globalFlowsn () const
 
const std::array< FlowsData< double >, 3 > & globalFloresn () const
 
bool isIORank () const
 
bool isParallel () const
 
int localIdxToGlobalIdx (unsigned localIdx) const
 
const std::vector< int > & localIdxToGlobalIdxMapping () const
 
bool doesNeedReordering () const
 
std::size_t numCells () const
 
const std::vector< int > & globalRanks () const
 
bool isCartIdxOnThisRank (int cartIdx) const
 

Static Public Attributes

static constexpr int dimension = Grid::dimension
 
static const bool needsReordering
 

Protected Attributes

P2PCommunicatorType toIORankComm_
 
InterRegFlowMap globalInterRegFlows_
 
IndexMapType globalCartesianIndex_
 
IndexMapType localIndexMap_
 
IndexMapStorageType indexMaps_
 
std::vector< int > globalRanks_
 
data::Solution globalCellData_
 
std::map< std::pair< std::string, int >, double > globalBlockData_
 
data::Wells globalWellData_
 
data::WellBlockAveragePressures globalWBPData_
 
data::GroupAndNetworkValues globalGroupAndNetworkData_
 
data::Aquifers globalAquiferData_
 
WellTestState globalWellTestState_
 
std::vector< int > localIdxToGlobalIdx_
 
std::array< FlowsData< double >, 3 > globalFlowsn_
 
std::array< FlowsData< double >, 3 > globalFloresn_
 
std::vector< int > sortedCartesianIdx_
 sorted list of cartesian indices present- More...
 

Member Typedef Documentation

◆ CollectiveCommunication

template<class Grid , class EquilGrid , class GridView >
using Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::CollectiveCommunication = typename Grid::CollectiveCommunication

◆ IndexMapStorageType

template<class Grid , class EquilGrid , class GridView >
using Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::IndexMapStorageType = std::vector<IndexMapType>

◆ IndexMapType

template<class Grid , class EquilGrid , class GridView >
using Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::IndexMapType = std::vector<int>

◆ P2PCommunicatorType

template<class Grid , class EquilGrid , class GridView >
using Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::P2PCommunicatorType = Dune::Point2PointCommunicator<Dune::SimpleMessageBuffer>

Member Enumeration Documentation

◆ anonymous enum

template<class Grid , class EquilGrid , class GridView >
anonymous enum
Enumerator
ioRank 

Constructor & Destructor Documentation

◆ CollectDataOnIORank()

Member Function Documentation

◆ collect()

template<class Grid , class EquilGrid , class GridView >
void Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::collect ( const data::Solution &  localCellData,
const std::map< std::pair< std::string, int >, double > &  localBlockData,
const data::Wells &  localWellData,
const data::WellBlockAveragePressures &  localWBPData,
const data::GroupAndNetworkValues &  localGroupAndNetworkData,
const data::Aquifers &  localAquiferData,
const WellTestState &  localWellTestState,
const InterRegFlowMap interRegFlows,
const std::array< FlowsData< double >, 3 > &  localFlowsn,
const std::array< FlowsData< double >, 3 > &  localFloresn 
)

◆ doesNeedReordering()

template<class Grid , class EquilGrid , class GridView >
bool Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::doesNeedReordering ( ) const
inline

◆ globalAquiferData()

template<class Grid , class EquilGrid , class GridView >
const data::Aquifers & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalAquiferData ( ) const
inline

◆ globalBlockData()

template<class Grid , class EquilGrid , class GridView >
const std::map< std::pair< std::string, int >, double > & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalBlockData ( ) const
inline

◆ globalCellData() [1/2]

template<class Grid , class EquilGrid , class GridView >
data::Solution & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalCellData ( )
inline

◆ globalCellData() [2/2]

template<class Grid , class EquilGrid , class GridView >
const data::Solution & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalCellData ( ) const
inline

◆ globalFloresn()

template<class Grid , class EquilGrid , class GridView >
const std::array< FlowsData< double >, 3 > & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalFloresn ( ) const
inline

◆ globalFlowsn()

template<class Grid , class EquilGrid , class GridView >
const std::array< FlowsData< double >, 3 > & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalFlowsn ( ) const
inline

◆ globalGroupAndNetworkData()

template<class Grid , class EquilGrid , class GridView >
const data::GroupAndNetworkValues & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalGroupAndNetworkData ( ) const
inline

◆ globalInterRegFlows() [1/2]

template<class Grid , class EquilGrid , class GridView >
InterRegFlowMap & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalInterRegFlows ( )
inline

◆ globalInterRegFlows() [2/2]

template<class Grid , class EquilGrid , class GridView >
const InterRegFlowMap & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalInterRegFlows ( ) const
inline

◆ globalRanks()

template<class Grid , class EquilGrid , class GridView >
const std::vector< int > & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalRanks ( ) const
inline

◆ globalWBPData()

template<class Grid , class EquilGrid , class GridView >
const data::WellBlockAveragePressures & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalWBPData ( ) const
inline

◆ globalWellData()

template<class Grid , class EquilGrid , class GridView >
const data::Wells & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalWellData ( ) const
inline

◆ globalWellTestState()

template<class Grid , class EquilGrid , class GridView >
const WellTestState & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalWellTestState ( ) const
inline

◆ isCartIdxOnThisRank()

template<class Grid , class EquilGrid , class GridView >
bool Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isCartIdxOnThisRank ( int  cartIdx) const

◆ isIORank()

◆ isParallel()

◆ localIdxToGlobalIdx()

template<class Grid , class EquilGrid , class GridView >
int Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::localIdxToGlobalIdx ( unsigned  localIdx) const

◆ localIdxToGlobalIdxMapping()

template<class Grid , class EquilGrid , class GridView >
const std::vector< int > & Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::localIdxToGlobalIdxMapping ( ) const
inline

◆ numCells()

template<class Grid , class EquilGrid , class GridView >
std::size_t Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::numCells ( ) const
inline

Member Data Documentation

◆ dimension

template<class Grid , class EquilGrid , class GridView >
constexpr int Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::dimension = Grid::dimension
staticconstexpr

◆ globalAquiferData_

template<class Grid , class EquilGrid , class GridView >
data::Aquifers Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalAquiferData_
protected

◆ globalBlockData_

template<class Grid , class EquilGrid , class GridView >
std::map<std::pair<std::string, int>, double> Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalBlockData_
protected

◆ globalCartesianIndex_

template<class Grid , class EquilGrid , class GridView >
IndexMapType Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalCartesianIndex_
protected

◆ globalCellData_

template<class Grid , class EquilGrid , class GridView >
data::Solution Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalCellData_
protected

◆ globalFloresn_

template<class Grid , class EquilGrid , class GridView >
std::array<FlowsData<double>, 3> Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalFloresn_
protected

◆ globalFlowsn_

template<class Grid , class EquilGrid , class GridView >
std::array<FlowsData<double>, 3> Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalFlowsn_
protected

◆ globalGroupAndNetworkData_

template<class Grid , class EquilGrid , class GridView >
data::GroupAndNetworkValues Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalGroupAndNetworkData_
protected

◆ globalInterRegFlows_

template<class Grid , class EquilGrid , class GridView >
InterRegFlowMap Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalInterRegFlows_
protected

◆ globalRanks_

template<class Grid , class EquilGrid , class GridView >
std::vector<int> Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalRanks_
protected

◆ globalWBPData_

template<class Grid , class EquilGrid , class GridView >
data::WellBlockAveragePressures Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalWBPData_
protected

◆ globalWellData_

template<class Grid , class EquilGrid , class GridView >
data::Wells Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalWellData_
protected

◆ globalWellTestState_

template<class Grid , class EquilGrid , class GridView >
WellTestState Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalWellTestState_
protected

◆ indexMaps_

template<class Grid , class EquilGrid , class GridView >
IndexMapStorageType Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::indexMaps_
protected

◆ localIdxToGlobalIdx_

template<class Grid , class EquilGrid , class GridView >
std::vector<int> Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::localIdxToGlobalIdx_
protected

◆ localIndexMap_

template<class Grid , class EquilGrid , class GridView >
IndexMapType Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::localIndexMap_
protected

◆ needsReordering

template<class Grid , class EquilGrid , class GridView >
const bool Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::needsReordering
static

◆ sortedCartesianIdx_

template<class Grid , class EquilGrid , class GridView >
std::vector<int> Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::sortedCartesianIdx_
protected

sorted list of cartesian indices present-

non-empty only when running in parallel

Referenced by Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::CollectDataOnIORank().

◆ toIORankComm_


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