Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends

LibGeoDecomp::BOVWriter< CELL_TYPE > Class Template Reference

writes simulation snapshots compatible with VisIt's Brick of Values (BOV) format using MPI-IO. More...

#include <bovwriter.h>

Inherits Clonable< ParallelWriter< CELL_TYPE >, BOVWriter< CELL_TYPE > >.

Collaboration diagram for LibGeoDecomp::BOVWriter< CELL_TYPE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ParallelWriter
< CELL_TYPE >::Topology 
Topology

Public Member Functions

template<typename MEMBER >
 BOVWriter (MEMBER CELL_TYPE::*member, const std::string &prefix, const unsigned period, const Coord< 3 > &brickletDim=Coord< 3 >(), const MPI_Comm &communicator=MPI_COMM_WORLD)
 BOVWriter (const Selector< CELL_TYPE > &selector, const std::string &prefix, const unsigned period, const Coord< 3 > &brickletDim=Coord< 3 >(), const MPI_Comm &communicator=MPI_COMM_WORLD)
virtual void stepFinished (const typename ParallelWriter< CELL_TYPE >::GridType &grid, const Region< Topology::DIM > &validRegion, const Coord< Topology::DIM > &globalDimensions, unsigned step, WriterEvent event, std::size_t rank, bool lastCall)

Static Public Attributes

static const int DIM = Topology::DIM

Private Member Functions

std::string filename (const unsigned &step, const std::string &suffix) const
void writeHeader (const unsigned &step, const Coord< DIM > &dimensions)
template<typename GRID_TYPE >
void writeRegion (const unsigned &step, const Coord< DIM > &dimensions, const GRID_TYPE &grid, const Region< DIM > &region)

Private Attributes

Selector< CELL_TYPE > selector
Coord< 3 > brickletDim
MPI_Comm comm
MPI_Datatype datatype

Friends

class BOVWriterTest

Detailed Description

template<typename CELL_TYPE>
class LibGeoDecomp::BOVWriter< CELL_TYPE >

writes simulation snapshots compatible with VisIt's Brick of Values (BOV) format using MPI-IO.

Uses a selector which maps a cell to a primitive data type so that it can be fed into VisIt or ParaView.


Member Typedef Documentation

template<typename CELL_TYPE >
typedef ParallelWriter<CELL_TYPE>::Topology LibGeoDecomp::BOVWriter< CELL_TYPE >::Topology

Constructor & Destructor Documentation

template<typename CELL_TYPE >
template<typename MEMBER >
LibGeoDecomp::BOVWriter< CELL_TYPE >::BOVWriter ( MEMBER CELL_TYPE::*  member,
const std::string &  prefix,
const unsigned  period,
const Coord< 3 > &  brickletDim = Coord<3>(),
const MPI_Comm &  communicator = MPI_COMM_WORLD 
) [inline]
template<typename CELL_TYPE >
LibGeoDecomp::BOVWriter< CELL_TYPE >::BOVWriter ( const Selector< CELL_TYPE > &  selector,
const std::string &  prefix,
const unsigned  period,
const Coord< 3 > &  brickletDim = Coord<3>(),
const MPI_Comm &  communicator = MPI_COMM_WORLD 
) [inline]

Member Function Documentation

template<typename CELL_TYPE >
std::string LibGeoDecomp::BOVWriter< CELL_TYPE >::filename ( const unsigned step,
const std::string &  suffix 
) const [inline, private]
template<typename CELL_TYPE >
virtual void LibGeoDecomp::BOVWriter< CELL_TYPE >::stepFinished ( const typename ParallelWriter< CELL_TYPE >::GridType grid,
const Region< Topology::DIM > &  validRegion,
const Coord< Topology::DIM > &  globalDimensions,
unsigned  step,
WriterEvent  event,
std::size_t  rank,
bool  lastCall 
) [inline, virtual]
template<typename CELL_TYPE >
void LibGeoDecomp::BOVWriter< CELL_TYPE >::writeHeader ( const unsigned step,
const Coord< DIM > &  dimensions 
) [inline, private]
template<typename CELL_TYPE >
template<typename GRID_TYPE >
void LibGeoDecomp::BOVWriter< CELL_TYPE >::writeRegion ( const unsigned step,
const Coord< DIM > &  dimensions,
const GRID_TYPE &  grid,
const Region< DIM > &  region 
) [inline, private]

Friends And Related Function Documentation

template<typename CELL_TYPE >
friend class BOVWriterTest [friend]

Member Data Documentation

template<typename CELL_TYPE >
Coord<3> LibGeoDecomp::BOVWriter< CELL_TYPE >::brickletDim [private]
template<typename CELL_TYPE >
MPI_Comm LibGeoDecomp::BOVWriter< CELL_TYPE >::comm [private]
template<typename CELL_TYPE >
MPI_Datatype LibGeoDecomp::BOVWriter< CELL_TYPE >::datatype [private]
template<typename CELL_TYPE >
const int LibGeoDecomp::BOVWriter< CELL_TYPE >::DIM = Topology::DIM [static]
template<typename CELL_TYPE >
Selector<CELL_TYPE> LibGeoDecomp::BOVWriter< CELL_TYPE >::selector [private]

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