5#ifndef MADNESS_APPS_DFPARAMS_H_INCLUDED
6#define MADNESS_APPS_DFPARAMS_H_INCLUDED
51 template<
typename Archive>
94 else if (s ==
"archive"){
100 else if (s ==
"max_iter"){
103 else if (s ==
"small"){
106 else if (s ==
"thresh"){
112 else if (s ==
"kain"){
115 else if (s ==
"maxsub"){
118 else if (s ==
"maxrotn"){
121 else if (s ==
"restart"){
124 else if (s ==
"nucleus"){
127 else if (s ==
"no_save"){
130 else if (s ==
"savefile"){
133 else if (s ==
"lb_iter"){
136 else if (s ==
"nwchem"){
139 else if (s ==
"lineplot"){
142 else if (s ==
"no_compute"){
145 else if (s ==
"bohr_rad"){
148 else if (s ==
"min_iter"){
151 else if (s ==
"Krestricted"){
155 std::cout <<
"Dirac Fock: unrecognized input keyword " << s << std::endl;
#define MADNESS_EXCEPTION(msg, value)
Macro for throwing a MADNESS exception.
Definition madness_exception.h:119
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
static const char * filename
Definition legendre.cc:96
std::istream & position_stream(std::istream &f, const std::string &tag, bool rewind=true)
Definition position_stream.cc:37
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
NDIM & f
Definition mra.h:2416
Definition DFParameters.h:12
bool no_compute
If true, will skip all computation.
Definition DFParameters.h:41
int k
Number of legendre polynomials in scaling basis.
Definition DFParameters.h:30
void read(std::istream &f)
Definition DFParameters.h:86
double maxrotn
maximum step allowed by kain
Definition DFParameters.h:33
double small
Minimum length scale to be resolved.
Definition DFParameters.h:28
bool kain
Turns on KAIN nonlinear solver.
Definition DFParameters.h:31
bool restart
Indicates this is a restarted DF job.
Definition DFParameters.h:34
int lb_iter
How many iterations to load balance (after the initial load balancing)
Definition DFParameters.h:38
int min_iter
minimum number of iterations (default: 2)
Definition DFParameters.h:43
std::string archive
Name of input archive to read in ground state.
Definition DFParameters.h:19
int max_iter
Maximum number of iterations.
Definition DFParameters.h:27
bool lineplot
Whether or not to make lineplots at the end of the job.
Definition DFParameters.h:40
bool Krestricted
Definition DFParameters.h:44
void serialize(Archive &ar)
Definition DFParameters.h:52
double thresh
Accuracy criterion when truncating.
Definition DFParameters.h:29
void print_params() const
Definition DFParameters.h:162
std::string savefile
Gives the file to save the archive each iteration Default: DFrestartdata (in working directory)
Definition DFParameters.h:37
double bohr_rad
bohr radius in fm (default: 52917.7211)
Definition DFParameters.h:42
int job
Definition DFParameters.h:20
void read_file(const std::string &filename)
Definition DFParameters.h:80
bool nwchem
Indicates archive given is actually an nwchem file for starting the job.
Definition DFParameters.h:39
int nucleus
Indicates which nucleus model to use (1 for fermi, anything else for Gaussian)
Definition DFParameters.h:35
DFParameters()
Definition DFParameters.h:57
bool do_save
Whether or not to save after each iteration. Defaults to true. Turn off with 'no_save'.
Definition DFParameters.h:36
int maxsub
Sets maximum subspace size for KAIN.
Definition DFParameters.h:32
void e()
Definition test_sig.cc:75