walberla::field::internal::FieldWriter< FieldT > Class Template Reference

#include <FileIO.impl.h>

Public Member Functions

 FieldWriter (const std::string &filename, const BlockDataID &fieldID, const Set< SUID > &requiredSelectors=Set< SUID >::emptySet(), const Set< SUID > &incompatibleSelectors=Set< SUID >::emptySet())
 
void writeToFile (const BlockStorage &blockStorage) const
 
void readFromFile (BlockStorage &blockStorage) const
 

Private Member Functions

std::vector< IBlock * > getBlocks (BlockStorage &blockStorage) const
 
std::vector< const IBlock * > getBlocks (const BlockStorage &blockStorage) const
 
void writeToFileNonMPI (const std::vector< const IBlock * > &blocks) const
 
void readFromFileNonMPI (const std::vector< IBlock * > &blocks) const
 
std::vector< uint_tcomputeBlockOffsets (const std::vector< const IBlock * > &blocks) const
 
std::vector< uint_tcomputeBlockOffsets (const std::vector< IBlock * > &blocks) const
 
MPI_Offset computeProcessByteOffset (uint_t processNumElements) const
 

Private Attributes

std::string filename_
 
BlockDataID fieldID_
 
Set< SUID > requiredSelectors_
 
Set< SUID > incompatibleSelectors_
 

Constructor & Destructor Documentation

◆ FieldWriter()

template<typename FieldT >
walberla::field::internal::FieldWriter< FieldT >::FieldWriter ( const std::string &  filename,
const BlockDataID fieldID,
const Set< SUID > &  requiredSelectors = Set< SUID >::emptySet(),
const Set< SUID > &  incompatibleSelectors = Set< SUID >::emptySet() 
)
inline

Member Function Documentation

◆ computeBlockOffsets() [1/2]

template<typename FieldT >
std::vector< uint_t > walberla::field::internal::FieldWriter< FieldT >::computeBlockOffsets ( const std::vector< const IBlock * > &  blocks) const
private

◆ computeBlockOffsets() [2/2]

template<typename FieldT >
std::vector< uint_t > walberla::field::internal::FieldWriter< FieldT >::computeBlockOffsets ( const std::vector< IBlock * > &  blocks) const
private

◆ computeProcessByteOffset()

template<typename FieldT >
MPI_Offset walberla::field::internal::FieldWriter< FieldT >::computeProcessByteOffset ( uint_t  processNumElements) const
private

◆ getBlocks() [1/2]

template<typename FieldT >
std::vector< IBlock * > walberla::field::internal::FieldWriter< FieldT >::getBlocks ( BlockStorage blockStorage) const
private

◆ getBlocks() [2/2]

template<typename FieldT >
std::vector< const IBlock * > walberla::field::internal::FieldWriter< FieldT >::getBlocks ( const BlockStorage blockStorage) const
private

◆ readFromFile()

template<typename FieldT >
void walberla::field::internal::FieldWriter< FieldT >::readFromFile ( BlockStorage blockStorage) const

◆ readFromFileNonMPI()

template<typename FieldT >
void walberla::field::internal::FieldWriter< FieldT >::readFromFileNonMPI ( const std::vector< IBlock * > &  blocks) const
private

◆ writeToFile()

template<typename FieldT >
void walberla::field::internal::FieldWriter< FieldT >::writeToFile ( const BlockStorage blockStorage) const

◆ writeToFileNonMPI()

template<typename FieldT >
void walberla::field::internal::FieldWriter< FieldT >::writeToFileNonMPI ( const std::vector< const IBlock * > &  blocks) const
private

Member Data Documentation

◆ fieldID_

template<typename FieldT >
BlockDataID walberla::field::internal::FieldWriter< FieldT >::fieldID_
private

◆ filename_

template<typename FieldT >
std::string walberla::field::internal::FieldWriter< FieldT >::filename_
private

◆ incompatibleSelectors_

template<typename FieldT >
Set< SUID > walberla::field::internal::FieldWriter< FieldT >::incompatibleSelectors_
private

◆ requiredSelectors_

template<typename FieldT >
Set< SUID > walberla::field::internal::FieldWriter< FieldT >::requiredSelectors_
private

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