MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
madness::RestartPlan Struct Reference

the decision: one source, one starting rung, one reason More...

#include <RestartPlan.h>

Collaboration diagram for madness::RestartPlan:
Collaboration graph
[legend]

Public Member Functions

bool needs_load () const
 true if orbitals have to be read from disk before anything else happens
 
std::string print_to_string () const
 
template<typename Archive >
void serialize (Archive &ar)
 serialization, so the plan can be decided on one rank and broadcast
 

Public Attributes

bool iterate = true
 false means "return what is on disk without solving anything"
 
RestartMode mode = RestartMode::automatic
 what was asked for
 
std::size_t protocol_start = 0
 rung of protocol() to start at; rungs below it are already covered
 
RestartSource source = RestartSource::initial_guess
 
double stale_energy = 1.e10
 energy from the archive, meaningful only when iterate==false
 
bool warn = false
 
std::string why
 one line, for the log and for the results json
 

Detailed Description

the decision: one source, one starting rung, one reason

Member Function Documentation

◆ needs_load()

bool madness::RestartPlan::needs_load ( ) const
inline

true if orbitals have to be read from disk before anything else happens

References madness::initial_guess, and source.

◆ print_to_string()

std::string madness::RestartPlan::print_to_string ( ) const
inline

◆ serialize()

template<typename Archive >
void madness::RestartPlan::serialize ( Archive ar)
inline

serialization, so the plan can be decided on one rank and broadcast

References iterate, m, mode, protocol_start, source, stale_energy, warn, and why.

Member Data Documentation

◆ iterate

bool madness::RestartPlan::iterate = true

false means "return what is on disk without solving anything"

Referenced by print_to_string(), and serialize().

◆ mode

RestartMode madness::RestartPlan::mode = RestartMode::automatic

what was asked for

Referenced by madness::plan_restart(), print_to_string(), and serialize().

◆ protocol_start

std::size_t madness::RestartPlan::protocol_start = 0

rung of protocol() to start at; rungs below it are already covered

Referenced by print_to_string(), and serialize().

◆ source

RestartSource madness::RestartPlan::source = RestartSource::initial_guess

◆ stale_energy

double madness::RestartPlan::stale_energy = 1.e10

energy from the archive, meaningful only when iterate==false

Referenced by serialize().

◆ warn

bool madness::RestartPlan::warn = false

true if this decision should be logged as a WARNING rather than as info

Two cases: a file was there but could not be used (silently recomputing would hide a disk fault or a wrong prefix), and read_only handing back an energy that does not meet the requested precision.

Referenced by serialize().

◆ why

std::string madness::RestartPlan::why

one line, for the log and for the results json

Referenced by print_to_string(), and serialize().


The documentation for this struct was generated from the following file: