www.mooseframework.org
Resurrector.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef RESURRECTOR_H
16 #define RESURRECTOR_H
17 
18 // MOOSE includes
19 #include "RestartableDataIO.h"
20 
21 // C++ includes
22 #include <string>
23 
24 // Forward declarations
25 class FEProblemBase;
26 
33 {
34 public:
35  Resurrector(FEProblemBase & fe_problem);
36  virtual ~Resurrector() = default;
37 
42  void setRestartFile(const std::string & file_base);
43 
49  void setRestartSuffix(const std::string & file_ext);
50 
54  void restartFromFile();
55 
57 
58 protected:
61 
63  std::string _restart_file_base;
64 
66  std::string _restart_file_suffix;
67 
70 
71  static const std::string MAT_PROP_EXT;
72  static const std::string RESTARTABLE_DATA_EXT;
73 };
74 
75 #endif /* RESURRECTOR_H */
virtual ~Resurrector()=default
Class for doing restart.
Definition: Resurrector.h:32
std::string _restart_file_suffix
name of the file extension that we restart from
Definition: Resurrector.h:66
Class for doing restart.
Resurrector(FEProblemBase &fe_problem)
Definition: Resurrector.C:28
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
static const std::string MAT_PROP_EXT
Definition: Resurrector.h:71
void restartRestartableData()
Definition: Resurrector.C:72
void setRestartFile(const std::string &file_base)
Set the file base name from which we will restart.
Definition: Resurrector.C:34
FEProblemBase & _fe_problem
Reference to a FEProblemBase being restarted.
Definition: Resurrector.h:60
void restartFromFile()
Perform a restart from a file.
Definition: Resurrector.C:46
void setRestartSuffix(const std::string &file_ext)
Set the file extension from which we will restart libMesh equation systems.
Definition: Resurrector.C:40
static const std::string RESTARTABLE_DATA_EXT
Definition: Resurrector.h:72
RestartableDataIO _restartable
Restartable Data.
Definition: Resurrector.h:69
std::string _restart_file_base
name of the file that we restart from
Definition: Resurrector.h:63