4#ifndef MADNESS_APPS_DIRAC_DFRESTART_H_INCLUDED
5#define MADNESS_APPS_DIRAC_DFRESTART_H_INCLUDED
32template <
typename Archive>
41template <
typename Archive>
43 unsigned int version = 0;
59 "unversioned DF restart archive! start from a moldft archive or "
60 "rerun with the older DFdriver");
62 "unsupported DF restart archive version! DF restart archive was written"
63 " by a newer DFdriver; use that DFdriver or start from a moldft "
Base class for exceptions thrown in MADNESS.
Definition madness_exception.h:66
Defines madness::MadnessException for exception handling.
#define MADNESS_CHECK_THROW(condition, msg)
Check a condition — even in a release build the condition is always evaluated so it can have side eff...
Definition madness_exception.h:207
Namespace for all elements and tools of MADNESS.
Definition DFConvergence.h:9
constexpr unsigned int DF_RESTART_VERSION
Definition DFRestart.h:29
unsigned int read_df_restart_version(const Archive &ar)
Definition DFRestart.h:42
void require_supported_df_restart(const unsigned int version)
Throws unless version is a DF restart format this build can read.
Definition DFRestart.h:57
void write_df_restart_version(const Archive &ar)
Writes the current DF restart format version as the first datum in the archive.
Definition DFRestart.h:33