Alsvinn  0.5.3
The fast FVM simulator with UQ support
Classes | Typedefs | Functions
alsfvm::io Namespace Reference

Classes

class  CoarseGrainingIntervalWriter
 The CoarseGrainingIntervalWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed time intervals. More...
 
class  DLLWriter
 
class  FixedIntervalWriter
 The FixedIntervalWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed time intervals. More...
 
class  HDF5MPIWriter
 The HDF5MPIWriter write to the HDF5 format with MPI support. More...
 
class  HDF5Resource
 The HDF5Resource class is a unique_ptr for hdf5 resources. More...
 
class  HDF5Writer
 The HDF5Writer class writes output to HDF5 format. More...
 
class  MpiWriterFactory
 
class  NetCDFMPIWriter
 
struct  NetCDFType
 
struct  NetCDFType< float >
 
class  NetCDFWriter
 
class  PythonScript
 
class  QueueWriter
 The QueueWriter class writes the data to a blocking queue. More...
 
class  TimeIntegratedWriter
 The TimeIntegratedWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed times around a time. More...
 
class  Writer
 The Writer class is an abstract interface to represent output writers. More...
 
class  WriterFactory
 

Typedefs

typedef int netcdf_raw_ptr
 
typedef alsfvm::shared_ptr< WriterWriterPointer
 

Functions

std::string getOutputname (const std::string &filename, size_t snapshotNumber)
 getOutputname creates the output filename More...
 
netcdf_raw_ptr getNetcdfRealType ()
 Gets the type corresponding to the alsfvm::real type. More...
 
template<class RealType >
std::enable_if< std::is_same< RealType, double >::value, int >::type nc_put_var_real (int ncid, int varid, const RealType *op)
 Wrapper function for nc_put_var_double. More...
 
template<class RealType >
std::enable_if< std::is_same< RealType, float >::value, int >::type nc_put_var_real (int ncid, int varid, const RealType *op)
 Wrapper function for nc_put_var_double. More...
 
void netcdfWriteAttributes (netcdf_raw_ptr varid, const std::string &basename, const boost::property_tree::ptree &propertyTree)
 
void netcdfWriteReport (netcdf_raw_ptr file)
 
template<class RealType >
std::enable_if< std::is_same< RealType, double >::value, int >::type ncmpi_put_vara_real_all (int ncid, int varid, const MPI_Offset *start, const MPI_Offset *count, const RealType *op)
 Wrapper function for ncmpi_put_vara_double_all. More...
 
template<class RealType >
std::enable_if< std::is_same< RealType, float >::value, int >::type ncmpi_put_vara_real_all (int ncid, int varid, const MPI_Offset *start, const MPI_Offset *count, const RealType *op)
 Wrapper function for ncmpi_put_vara_float_all. More...
 
void parallelNetcdfWriteAttributes (netcdf_raw_ptr file, const std::string &attributeBaseName, const boost::property_tree::ptree &properties)
 
void parallelNetcdfWriteReport (netcdf_raw_ptr file)
 

Typedef Documentation

◆ netcdf_raw_ptr

◆ WriterPointer

typedef alsfvm::shared_ptr<Writer> alsfvm::io::WriterPointer

Function Documentation

◆ getNetcdfRealType()

netcdf_raw_ptr alsfvm::io::getNetcdfRealType ( )
inline

Gets the type corresponding to the alsfvm::real type.

◆ getOutputname()

std::string alsfvm::io::getOutputname ( const std::string &  filename,
size_t  snapshotNumber 
)

getOutputname creates the output filename

Note
This does not include an extension
Parameters
filenamethe base filename (eg. "simulation")
snapshotNumberthe current snapshot number (this not the timestep number)
Note
snapshotNumber is essentially the number of snapshots that has been saved up until now.
Returns
the filename with extra timestep information attached.

◆ nc_put_var_real() [1/2]

template<class RealType >
std::enable_if<std::is_same<RealType, double>::value, int>::type alsfvm::io::nc_put_var_real ( int  ncid,
int  varid,
const RealType *  op 
)

Wrapper function for nc_put_var_double.

◆ nc_put_var_real() [2/2]

template<class RealType >
std::enable_if<std::is_same<RealType, float>::value, int>::type alsfvm::io::nc_put_var_real ( int  ncid,
int  varid,
const RealType *  op 
)

Wrapper function for nc_put_var_double.

◆ ncmpi_put_vara_real_all() [1/2]

template<class RealType >
std::enable_if<std::is_same<RealType, double>::value, int>::type alsfvm::io::ncmpi_put_vara_real_all ( int  ncid,
int  varid,
const MPI_Offset *  start,
const MPI_Offset *  count,
const RealType *  op 
)

Wrapper function for ncmpi_put_vara_double_all.

◆ ncmpi_put_vara_real_all() [2/2]

template<class RealType >
std::enable_if<std::is_same<RealType, float>::value, int>::type alsfvm::io::ncmpi_put_vara_real_all ( int  ncid,
int  varid,
const MPI_Offset *  start,
const MPI_Offset *  count,
const RealType *  op 
)

Wrapper function for ncmpi_put_vara_float_all.

◆ netcdfWriteAttributes()

void alsfvm::io::netcdfWriteAttributes ( netcdf_raw_ptr  varid,
const std::string &  basename,
const boost::property_tree::ptree &  propertyTree 
)

◆ netcdfWriteReport()

void alsfvm::io::netcdfWriteReport ( netcdf_raw_ptr  file)

◆ parallelNetcdfWriteAttributes()

void alsfvm::io::parallelNetcdfWriteAttributes ( netcdf_raw_ptr  file,
const std::string &  attributeBaseName,
const boost::property_tree::ptree &  properties 
)

◆ parallelNetcdfWriteReport()

void alsfvm::io::parallelNetcdfWriteReport ( netcdf_raw_ptr  file)