39#ifndef MADNESS_CHEM_SCFPROTOCOL_H__INCLUDED
40#define MADNESS_CHEM_SCFPROTOCOL_H__INCLUDED
79 ss <<
"\nstarting protocol at time" << std::setw(8) << std::setprecision(2)
112 bool approx(
const double a,
const double b)
const {
double w(double t, double eps)
Definition DKops.h:22
struct for running a protocol of subsequently tightening precision
Definition SCFProtocol.h:47
double user_dconv
density convergence provided by user
Definition SCFProtocol.h:67
double end_prec
final precision
Definition SCFProtocol.h:62
World & world
Definition SCFProtocol.h:56
bool finished() const
Definition SCFProtocol.h:87
void initialize()
Definition SCFProtocol.h:69
SCFProtocol & operator++()
go to the next level
Definition SCFProtocol.h:90
bool converged
flag if protocol has converged
Definition SCFProtocol.h:58
double dconv
density convergence of SCF calculations
Definition SCFProtocol.h:66
double current_prec
current precision
Definition SCFProtocol.h:61
double thresh
numerical precision of representing functions
Definition SCFProtocol.h:64
double start_prec
starting precision, typically 1.e-4
Definition SCFProtocol.h:60
void infer_thresholds(const double prec)
infer thresholds starting from a target precision
Definition SCFProtocol.h:103
bool approx(const double a, const double b) const
compare two positive doubles to be equal
Definition SCFProtocol.h:112
SCFProtocol(World &w, const CalculationParameters ¶m)
Definition SCFProtocol.h:49
double econv
energy convergence of SCF calculations
Definition SCFProtocol.h:65
A parallel world class.
Definition world.h:132
ProcessID rank() const
Returns the process rank in this World (same as MPI_Comm_rank()).
Definition world.h:318
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
void print(const T &t, const Ts &... ts)
Print items to std::cout (items separated by spaces) and terminate with a new line.
Definition print.h:225
double wall_time()
Returns the wall time in seconds relative to an arbitrary origin.
Definition timers.cc:48
static long abs(long a)
Definition tensor.h:218
static const double b
Definition nonlinschro.cc:119
static const double a
Definition nonlinschro.cc:118
Definition CalculationParameters.h:51
InputParameters param
Definition tdse.cc:203