aquifers: add missing serialize() and deserialize() methods

the original purpose of those is to provide a checkpoint/restart
mechanism using an ad-hoc file format. They might also be useful for
implementing the adjoint functionality, though.
This commit is contained in:
Andreas Lauser
2019-02-25 12:14:38 +01:00
parent 5163131f59
commit 6753e9ca31
2 changed files with 24 additions and 0 deletions

View File

@@ -60,6 +60,12 @@ namespace Opm {
void endTimeStep();
void endEpisode();
template <class Restarter>
void serialize(Restarter& res);
template <class Restarter>
void deserialize(Restarter& res);
protected:
// --------- Types ---------
typedef typename GET_PROP_TYPE(TypeTag, ElementContext) ElementContext;

View File

@@ -106,6 +106,24 @@ namespace Opm {
BlackoilAquiferModel<TypeTag>::endEpisode()
{ }
template <typename TypeTag>
template <class Restarter>
void
BlackoilAquiferModel<TypeTag>::serialize(Restarter& res)
{
// TODO (?)
throw std::logic_error("BlackoilAquiferModel::serialize() is not yet implemented");
}
template<typename TypeTag>
template <class Restarter>
void
BlackoilAquiferModel<TypeTag>::deserialize(Restarter& res)
{
// TODO (?)
throw std::logic_error("BlackoilAquiferModel::deserialize() is not yet implemented");
}
// Initialize the aquifers in the deck
template<typename TypeTag>
void