Restart Namespace Reference

Developer Documentation: MeltPoolDG::Restart Namespace Reference
Developer Documentation
MeltPoolDG::Restart Namespace Reference

Classes

struct  RestartData
 
class  RestartMonitor
 

Functions

template<int dim, typename VectorType >
void serialize_internal (const AttachDoFHandlerAndVectorsType< dim, VectorType > &attach_vectors, const std::string &prefix)
 
template<int dim, typename VectorType >
void deserialize_internal (const AttachDoFHandlerAndVectorsType< dim, VectorType > &attach_vectors, const std::function< void()> &post, const std::function< void()> &setup_dof_system, const std::string &prefix)
 
template void serialize_internal (const AttachDoFHandlerAndVectorsType< 1, dealii::LinearAlgebra::distributed::Vector< double > > &, const std::string &)
 
template void serialize_internal (const AttachDoFHandlerAndVectorsType< 2, dealii::LinearAlgebra::distributed::Vector< double > > &, const std::string &)
 
template void serialize_internal (const AttachDoFHandlerAndVectorsType< 3, dealii::LinearAlgebra::distributed::Vector< double > > &, const std::string &)
 
template void deserialize_internal (const AttachDoFHandlerAndVectorsType< 1, dealii::LinearAlgebra::distributed::Vector< double > > &, const std::function< void()> &, const std::function< void()> &, const std::string &)
 
template void deserialize_internal (const AttachDoFHandlerAndVectorsType< 2, dealii::LinearAlgebra::distributed::Vector< double > > &, const std::function< void()> &, const std::function< void()> &, const std::string &)
 
template void deserialize_internal (const AttachDoFHandlerAndVectorsType< 3, dealii::LinearAlgebra::distributed::Vector< double > > &, const std::function< void()> &, const std::function< void()> &, const std::string &)
 

Function Documentation

◆ deserialize_internal() [1/4]

template void MeltPoolDG::Restart::deserialize_internal ( const AttachDoFHandlerAndVectorsType< 1, dealii::LinearAlgebra::distributed::Vector< double > > &  ,
const std::function< void()> &  ,
const std::function< void()> &  ,
const std::string &   
)

◆ deserialize_internal() [2/4]

template void MeltPoolDG::Restart::deserialize_internal ( const AttachDoFHandlerAndVectorsType< 2, dealii::LinearAlgebra::distributed::Vector< double > > &  ,
const std::function< void()> &  ,
const std::function< void()> &  ,
const std::string &   
)

◆ deserialize_internal() [3/4]

template void MeltPoolDG::Restart::deserialize_internal ( const AttachDoFHandlerAndVectorsType< 3, dealii::LinearAlgebra::distributed::Vector< double > > &  ,
const std::function< void()> &  ,
const std::function< void()> &  ,
const std::string &   
)

◆ deserialize_internal() [4/4]

template<int dim, typename VectorType >
void MeltPoolDG::Restart::deserialize_internal ( const AttachDoFHandlerAndVectorsType< dim, VectorType > &  attach_vectors,
const std::function< void()> &  post,
const std::function< void()> &  setup_dof_system,
const std::string &  prefix 
)

Reconstruct all solution vectors that are saved in the restart data, given by the

Parameters
prefix
attach_vectorslambda function of type AttachDoFHandlerAndVectorsType, that attaches all DoFHandlers and their respective DoFVectors that ought to be reconstructed
postthis lambda function is run after AMR was executed
setup_dof_systemsetup the dof system, this includes:
  • distribute DoFs on the new mesh
  • create partitioning for the new mesh
  • setup constraints on the new mesh
  • reinit the MatrixFree object for the new DoFs (ScratchData::build())
  • initialize all DoF vectors for the new DoF

◆ serialize_internal() [1/4]

template void MeltPoolDG::Restart::serialize_internal ( const AttachDoFHandlerAndVectorsType< 1, dealii::LinearAlgebra::distributed::Vector< double > > &  ,
const std::string &   
)

◆ serialize_internal() [2/4]

template void MeltPoolDG::Restart::serialize_internal ( const AttachDoFHandlerAndVectorsType< 2, dealii::LinearAlgebra::distributed::Vector< double > > &  ,
const std::string &   
)

◆ serialize_internal() [3/4]

template void MeltPoolDG::Restart::serialize_internal ( const AttachDoFHandlerAndVectorsType< 3, dealii::LinearAlgebra::distributed::Vector< double > > &  ,
const std::string &   
)

◆ serialize_internal() [4/4]

template<int dim, typename VectorType >
void MeltPoolDG::Restart::serialize_internal ( const AttachDoFHandlerAndVectorsType< dim, VectorType > &  attach_vectors,
const std::string &  prefix 
)