33 #ifndef ELECTRONICSTRUCTUREPARAMS_H_ 
   34 #define ELECTRONICSTRUCTUREPARAMS_H_ 
  117   template <
typename Archive>
 
  119       ar & L & nelec & functional & lo & spinpol &
 
  120         periodic & maxits & ispotential & thresh &
 
  121         waveorder & maxthresh & maxwaveorder & nempty &
 
  122         smear & nbands & ngridk0 & ngridk1 & ngridk2 &
 
  123         maxocc & kpoints & fractional & maxsub & 
 
  124         maxrotn & canon & solver & koffset0 & koffset1 & 
 
  125         koffset2 & basis & nio & restart & ncharge & 
 
  126         swidth & print_matrices & plotorbs & rcriterion &
 
  146     ngridk0 = 1; ngridk1 = 1; ngridk2 = 1;
 
  148     nbands = nelec/maxocc + 
nempty;
 
  163     print_matrices = 
true;
 
  172     std::ifstream 
f(filename.c_str());
 
  182       else if (s == 
"nelec")
 
  187       else if (s == 
"solver")
 
  195       else if (s == 
"functional")
 
  199       else if (s == 
"basis")
 
  207       else if (s == 
"swidth")
 
  215       else if (s == 
"restart") {
 
  218       else if (s == 
"norestart") {
 
  221       else if (s == 
"spinpol") {
 
  224       else if (s == 
"nospinpol") {
 
  227       else if (s == 
"canon") {
 
  230       else if (s == 
"nocanon") {
 
  233       else if (s == 
"periodic") {
 
  236       else if (s == 
"noperiodic") {
 
  239       else if (s == 
"usepotential") {
 
  242       else if (s == 
"nousepotential") {
 
  245       else if (s == 
"maxits")
 
  249       else if (s == 
"maxsub")
 
  253       else if (s == 
"maxrotn")
 
  257       else if (s == 
"damping")
 
  261       else if (s == 
"thresh")
 
  266       else if (s == 
"waveorder")
 
  271       else if (s == 
"nempty")
 
  275       else if (s == 
"kpoints")
 
  279         if (tempstr == 
"true")
 
  283         else if (tempstr == 
"false")
 
  292       else if (s == 
"fractional") {
 
  295       else if (s == 
"nofractional") {
 
  298       else if (s == 
"ngridk")
 
  302       else if (s == 
"koffset")
 
  306       else if (s == 
"print_matrices") {
 
  307           print_matrices = 
true;
 
  309       else if (s == 
"noprint_matrices") {
 
  310           print_matrices = 
false;
 
  312       else if (s == 
"center") {
 
  315       else if (s == 
"nocenter") {
 
  318       else if (s == 
"plotorbs") {
 
  321       else if (s == 
"noplotorbs") {
 
  324       else if (s == 
"rcriterion")
 
  330         std::cout << 
"esolver: unrecognized input keyword " << s << std::endl;
 
  343     if (kpoints && !periodic)
 
  344       MADNESS_EXCEPTION(
"input error -- k-points only valid with periodic calculation", 0);
 
bool centered
Definition: electronicstructureparams.h:113
double thresh
Definition: electronicstructureparams.h:64
Main include file for MADNESS and defines Function interface. 
double smear
Definition: electronicstructureparams.h:74
Header to declare stuff which has not yet found a home. 
int solver
Definition: electronicstructureparams.h:92
double swidth
Definition: electronicstructureparams.h:105
bool spinpol
Definition: electronicstructureparams.h:56
std::istream & position_stream(std::istream &f, const std::string &tag)
Definition: position_stream.cc:37
Definition: electronicstructureparams.h:45
double L
Definition: electronicstructureparams.h:48
::std::string string
Definition: gtest-port.h:872
double rcriterion
Definition: electronicstructureparams.h:111
bool canon
Definition: electronicstructureparams.h:90
bool periodic
Definition: electronicstructureparams.h:58
bool kpoints
Definition: electronicstructureparams.h:82
bool fractional
Definition: electronicstructureparams.h:84
int maxwaveorder
Definition: electronicstructureparams.h:70
NDIM & f
Definition: mra.h:2179
void serialize(Archive &ar)
Definition: electronicstructureparams.h:118
double ncharge
Definition: electronicstructureparams.h:103
bool plotorbs
Definition: electronicstructureparams.h:109
double maxocc
Definition: electronicstructureparams.h:80
void set_molecular_info(const MolecularEntity &mentity, const AtomicBasisSet &aobasis)
Definition: electronicstructureparams.h:347
Defines operations on vectors of FunctionsThis file defines a number of operations on vectors of func...
int functional
Definition: electronicstructureparams.h:52
int ngridk2
Definition: electronicstructureparams.h:78
double sd
Definition: electronicstructureparams.h:115
int nempty
Definition: electronicstructureparams.h:72
int waveorder
Definition: electronicstructureparams.h:66
double maxthresh
Definition: electronicstructureparams.h:68
unsigned int maxsub
Definition: electronicstructureparams.h:86
double koffset0
Definition: electronicstructureparams.h:94
int nelec
Definition: electronicstructureparams.h:50
bool print_matrices
Definition: electronicstructureparams.h:107
std::string basis
Definition: electronicstructureparams.h:96
double maxrotn
Definition: electronicstructureparams.h:88
int nio
Definition: electronicstructureparams.h:98
int ngridk0
Definition: electronicstructureparams.h:78
double smallest_length_scale() const 
Definition: mentity.cc:403
int nbands
Definition: electronicstructureparams.h:76
ElectronicStructureParams()
Definition: electronicstructureparams.h:130
void read_file(const std::string &filename)
Definition: electronicstructureparams.h:170
int ngridk1
Definition: electronicstructureparams.h:78
double koffset2
Definition: electronicstructureparams.h:94
int restart
Definition: electronicstructureparams.h:101
double lo
Definition: electronicstructureparams.h:54
Contracted Gaussian basis. 
Definition: chem/molecularbasis.h:391
#define MADNESS_EXCEPTION(msg, value)
Definition: worldexc.h:88
double koffset1
Definition: electronicstructureparams.h:94
Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces. 
Definition: chem/atomutil.cc:45
bool ispotential
Definition: electronicstructureparams.h:62
int maxits
Definition: electronicstructureparams.h:60