16#ifndef Save_Restart_included
17#define Save_Restart_included
19#include <Sortie_Fichier_base.h>
20#include <Sortie_Brute.h>
21#include <TRUST_Deriv.h>
59 void lire_pdi_sauvegarde_reprise(
Entree& is,
Motcle& motlu,
Nom& restart_file_name,
Nom& yaml_fname);
61 void setTinitFromLastTime(
double last_time);
62 void prepare_PDI_restart(
int resume_last_time);
63 void checkVersion(
const Nom& nomfic);
71 Nom checkpoint_filename_;
72 Nom restart_filename_;
73 Nom checkpoint_format_;
75 bool restart_done_ =
false;
76 int simple_restart_ = 0;
77 int restart_version_ = 155;
78 bool restart_in_progress_ =
false;
79 mutable bool ficsauv_created_ =
false;
80 mutable bool config_file_created_ =
false;
86 static long int File_size_;
87 static int Bad_allocate_;
88 static int Nb_pb_total_;
95inline const char* time_format_from(
const int reprise_version)
99 if (reprise_version<155)
107 return time_format_from(restart_version_);
: This class describes a group of processors on which
Class defining operators and methods for all reading operation in an input flow (file,...
A character string (Nom) in uppercase.
class Nom: a character string for naming TRUST objects.
class Probleme_base It is a Probleme_U that is not a coupling.
bool & reprise_effectuee()
const Nom & yaml_filename() const
const Nom & restart_filename() const
int sauver() const
Writes to file for restart (backup).
const Nom & checkpoint_format() const
void sauver_xyz(int) const
bool reprise_effectuee() const
void assoscier_pb_base(const Probleme_base &)
void lire_sauvegarde_reprise(Entree &is, Motcle &motlu)
int allocate_file_size(long int &size) const
Verifies that the necessary space exists on the hard disk.
bool is_restart_in_progress() const
const char * reprise_format_temps() const
void set_restart_in_progress(const bool res)
int is_sauvegarde_simple() const
const Nom & checkpoint_filename() const
This derived class of Sortie stacks whatever it receives in an internal binary buffer.