Opm::Restart Class Reference

Load or save a state of a problem to/from the harddisk. More...

#include <restart.hh>

Public Member Functions

const std::string & fileName () const
 Returns the name of the file which is (de-)serialized. More...
 
template<class Simulator >
void serializeBegin (Simulator &simulator)
 Write the current state of the model to disk. More...
 
std::ostream & serializeStream ()
 The output stream to write the serialized data. More...
 
void serializeSectionBegin (const std::string &cookie)
 Start a new section in the serialized output. More...
 
void serializeSectionEnd ()
 End of a section in the serialized output. More...
 
template<int codim, class Serializer , class GridView >
void serializeEntities (Serializer &serializer, const GridView &gridView)
 Serialize all leaf entities of a codim in a gridView. More...
 
void serializeEnd ()
 Finish the restart file. More...
 
template<class Simulator , class Scalar >
void deserializeBegin (Simulator &simulator, Scalar t)
 Start reading a restart file at a certain simulated time. More...
 
std::istream & deserializeStream ()
 The input stream to read the data which ought to be deserialized. More...
 
void deserializeSectionBegin (const std::string &cookie)
 Start reading a new section of the restart file. More...
 
void deserializeSectionEnd ()
 End of a section in the serialized output. More...
 
template<int codim, class Deserializer , class GridView >
void deserializeEntities (Deserializer &deserializer, const GridView &gridView)
 Deserialize all leaf entities of a codim in a grid. More...
 
void deserializeEnd ()
 Stop reading the restart file. More...
 

Detailed Description

Load or save a state of a problem to/from the harddisk.

Member Function Documentation

◆ deserializeBegin()

template<class Simulator , class Scalar >
void Opm::Restart::deserializeBegin ( Simulator simulator,
Scalar  t 
)
inline

◆ deserializeEnd()

void Opm::Restart::deserializeEnd ( )
inline

Stop reading the restart file.

Referenced by Opm::Simulator< TypeTag >::run().

◆ deserializeEntities()

template<int codim, class Deserializer , class GridView >
void Opm::Restart::deserializeEntities ( Deserializer &  deserializer,
const GridView &  gridView 
)
inline

Deserialize all leaf entities of a codim in a grid.

The actual work is done by Deserializer::deserialize(Entity)

References deserializeSectionBegin(), and deserializeSectionEnd().

◆ deserializeSectionBegin()

void Opm::Restart::deserializeSectionBegin ( const std::string &  cookie)
inline

Start reading a new section of the restart file.

Referenced by deserializeBegin(), and deserializeEntities().

◆ deserializeSectionEnd()

void Opm::Restart::deserializeSectionEnd ( )
inline

End of a section in the serialized output.

Referenced by deserializeBegin(), and deserializeEntities().

◆ deserializeStream()

std::istream & Opm::Restart::deserializeStream ( )
inline

The input stream to read the data which ought to be deserialized.

◆ fileName()

const std::string & Opm::Restart::fileName ( ) const
inline

Returns the name of the file which is (de-)serialized.

Referenced by Opm::Simulator< TypeTag >::run().

◆ serializeBegin()

template<class Simulator >
void Opm::Restart::serializeBegin ( Simulator simulator)
inline

◆ serializeEnd()

void Opm::Restart::serializeEnd ( )
inline

Finish the restart file.

◆ serializeEntities()

template<int codim, class Serializer , class GridView >
void Opm::Restart::serializeEntities ( Serializer &  serializer,
const GridView &  gridView 
)
inline

Serialize all leaf entities of a codim in a gridView.

The actual work is done by Serializer::serialize(Entity)

References serializeSectionBegin(), and serializeSectionEnd().

◆ serializeSectionBegin()

void Opm::Restart::serializeSectionBegin ( const std::string &  cookie)
inline

Start a new section in the serialized output.

Referenced by serializeBegin(), and serializeEntities().

◆ serializeSectionEnd()

void Opm::Restart::serializeSectionEnd ( )
inline

End of a section in the serialized output.

Referenced by serializeBegin(), and serializeEntities().

◆ serializeStream()

std::ostream & Opm::Restart::serializeStream ( )
inline

The output stream to write the serialized data.


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