dune-fem
2.4.1-rc
|
IOInterface to write data to hard disk. More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/io/file/iointerface.hh>
Classes | |
struct | SaveParallelCartesianGrid |
struct | SaveParallelCartesianGrid< YaspGrid< dim, CoordCont > > |
Public Member Functions | |
virtual | ~IOInterface () |
destructor More... | |
virtual void | writeData (double sequenceStamp) const =0 |
write data with a given sequence stamp More... | |
virtual void | write (const TimeProviderBase &tp) const =0 |
write given data to disc, evaluates parameter savecount and savestep More... | |
virtual void | write () const =0 |
write given data to disc, evaluates parameter savecount More... | |
Static Public Member Functions | |
static std::string | defaultGridKey (int dimension, bool check=true) |
return FEM key for macro grid reading More... | |
static std::string | defaultGridKey (int dimension, const ParameterReader ¶meter, bool check=true) |
static std::string | defaultGridKey (std::string base, int dimension, bool check=true) |
static std::string | defaultGridKey (std::string base, int dimension, const ParameterReader ¶meter, bool check=true) |
return FEM key for macro grid reading More... | |
static void | createPath (const std::string &path) |
create given path in combination with rank More... | |
static std::string | createPathName (const std::string &pathPref, int rank) |
create given path in combination with rank More... | |
static std::string | readPath () |
template<class CommunicatorType > | |
static void | createGlobalPath (const CommunicatorType &comm, const std::string &path) |
create global path for data output More... | |
static std::string | copyPathToFilename (const std::string &path) |
template<class CommunicatorType > | |
static std::string | createPath (const CommunicatorType &comm, const std::string &pathPrefix, const std::string &dataPrefix, const int step, const bool alsoCreateRankPath=true) |
static std::string | createRecoverPath (const std::string &pathPrefix, const int rank, const std::string &dataPrefix, const int step, const bool alsoUseRankPath=true) |
template<class GridImp > | |
static void | writeMacroGrid (const GridImp &grid, std::ostream &out, const std::string ¯oname, const std::string &path, const std::string &prefix, const bool writeSubFiles=false) |
if grid is structured grid, write macro file More... | |
template<class GridImp > | |
static void | copyMacroGrid (const GridImp &g, const std::string ¯oGrid, const std::string &orgPath, const std::string &destPath, const std::string &prefix) |
if grid is structured grid, write macro file More... | |
Protected Member Functions | |
IOInterface () | |
default constructor More... | |
Static Protected Member Functions | |
static std::string | strRank (const int rank) |
create string containing rank More... | |
template<class GridImp > | |
static void | saveCartesianGrid (const GridImp &grid, std::ostream &out, dgf::IntervalBlock &intervalBlock, std::string filename, const bool writeSubFiles) |
write my partition as macro grid More... | |
template<int dimension> | |
static void | writeToStream (std::ostream &file, const FieldVector< double, dimension > &origin, const FieldVector< double, dimension > &lang, const FieldVector< int, dimension > &anz) |
template<int dimension> | |
static void | writeStructuredGrid (const std::string &filename, std::ostream &out, const FieldVector< double, dimension > &origin, const FieldVector< double, dimension > &lang, const FieldVector< int, dimension > &anz) |
write structured grid as DGF file More... | |
IOInterface to write data to hard disk.
|
inlineprotected |
default constructor
|
inlinevirtual |
destructor
References write(), and writeData().
|
inlinestatic |
if grid is structured grid, write macro file
References Dune::Fem::Parameter::verbose().
|
inlinestatic |
Referenced by createPath(), and createRecoverPath().
|
inlinestatic |
create global path for data output
References Dune::Fem::createDirectory().
Referenced by createPath(), and Dune::Fem::DataOutput< GridImp, DataImp >::init().
|
inlinestatic |
create given path in combination with rank
References Dune::Fem::createDirectory().
Referenced by Dune::Fem::DataWriter< GridImp, DataImp >::writeMyBinaryData().
|
inlinestatic |
|
inlinestatic |
create given path in combination with rank
References path.
Referenced by createPath(), and createRecoverPath().
|
inlinestatic |
|
inlinestatic |
return FEM key for macro grid reading
References Dune::Fem::Parameter::container().
Referenced by defaultGridKey(), and Dune::Fem::DataWriterParameters::macroGridName().
|
inlinestatic |
References defaultGridKey().
|
inlinestatic |
References Dune::Fem::Parameter::container(), defaultGridKey(), and Dune::Fem::move().
|
inlinestatic |
return FEM key for macro grid reading
References Dune::Fem::BasicParameterReader< Parameter >::exists().
|
inlinestatic |
standard path reading and creation method rank is added to output path
References Dune::Fem::Parameter::commonOutputPath().
Referenced by Dune::Fem::CheckPointer< GridImp, DataImp >::restoreGrid().
|
inlinestaticprotected |
write my partition as macro grid
References Dune::Fem::IOInterface::SaveParallelCartesianGrid< Grid >::getCoordinates(), strRank(), and writeStructuredGrid().
Referenced by writeMacroGrid().
|
inlinestaticprotected |
create string containing rank
Referenced by saveCartesianGrid().
|
pure virtual |
write given data to disc, evaluates parameter savecount and savestep
tp | time provider for time and step |
Implemented in Dune::Fem::DataOutput< GridImp, DataImp >.
|
pure virtual |
write given data to disc, evaluates parameter savecount
Implemented in Dune::Fem::DataOutput< GridImp, DataImp >.
Referenced by ~IOInterface().
|
pure virtual |
write data with a given sequence stamp
sequenceStamp | stamp for the data set |
Implemented in Dune::Fem::DataOutput< GridImp, DataImp >.
Referenced by ~IOInterface().
|
inlinestatic |
if grid is structured grid, write macro file
References saveCartesianGrid().
|
inlinestaticprotected |
|
inlinestaticprotected |
Referenced by writeStructuredGrid().