1#ifndef CAL_ATOMS_INFO_H
2#define CAL_ATOMS_INFO_H
24 for (
int it = 0; it < ntype; ++it)
26 for (
int ia = 0; ia < atoms[it].
na; ++ia)
37 for (
int it = 0; it < ntype; ++it)
39 if (atoms[it].ncpp.tvanp)
47 for (
int it = 0; it < ntype; ++it)
49 const int nlocal_it = atoms[it].
nw * atoms[it].
na;
64 std::vector<double> nelec_spin(2, 0.0);
int na
Definition atom_spec.h:27
int nw
Definition atom_spec.h:22
std::vector< double > mag
Definition atom_spec.h:45
Definition cal_atoms_info.h:7
CalAtomsInfo()
Definition cal_atoms_info.h:9
void cal_atoms_info(const Atom *atoms, const int &ntype, Parameter ¶)
Calculate the atom information from pseudopotential to set Parameter.
Definition cal_atoms_info.h:19
~CalAtomsInfo()
Definition cal_atoms_info.h:10
Definition parameter.h:13
Input_para input
Definition parameter.h:45
const Input_para & inp
Definition parameter.h:26
System_para sys
Definition parameter.h:47
const System_para & globalv
Definition parameter.h:30
std::ofstream ofs_running
Definition global_variable.cpp:38
int MY_BNDGROUP
Definition global_variable.cpp:23
void OUT(std::ofstream &ofs, const std::string &name)
Definition global_function.cpp:56
void cal_nbands(const int &nelec, const int &nlocal, const std::vector< double > &nelec_spin, int &nbands)
Calculate the number of bands.
Definition cal_nelec_nband.cpp:39
void cal_nelec(const Atom *atoms, const int &ntype, double &nelec)
calculate the total number of electrons in system
Definition cal_nelec_nband.cpp:7
bool two_fermi
true if "nupdown" is set
Definition system_parameter.h:24
int nbands_l
number of bands of each band parallel calculation, same to nbands when bndpar=1
Definition system_parameter.h:60
bool ks_run
true if current process runs KS calculation
Definition system_parameter.h:61
bool use_uspp
true if "uspp" is set
Definition system_parameter.h:25
int nlocal
total number of local basis.
Definition system_parameter.h:23