1#ifndef CAL_ATOMS_INFO_H
2#define CAL_ATOMS_INFO_H
23 for (
int it = 0; it < ntype; ++it)
25 for (
int ia = 0; ia < atoms[it].
na; ++ia)
35 for (
int it = 0; it < ntype; ++it)
37 if (atoms[it].ncpp.tvanp)
45 for (
int it = 0; it < ntype; ++it)
47 const int nlocal_it = atoms[it].
nw * atoms[it].
na;
62 std::vector<double> nelec_spin(2, 0.0);
int na
Definition atom_spec.h:28
int nw
Definition atom_spec.h:23
std::vector< double > mag
Definition atom_spec.h:45
Definition cal_atoms_info.h:6
CalAtomsInfo()
Definition cal_atoms_info.h:8
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:18
~CalAtomsInfo()
Definition cal_atoms_info.h:9
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 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