Skip to content

Commit 6e479ca

Browse files
author
jiyuang
committed
move Name_Angular from constant.h to energy.h
1 parent b11ff73 commit 6e479ca

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

source/module_base/constants.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,6 @@ const double RYDBERG_SI = HARTREE_SI/2.0; //J
9595
// zero up to a given accuracy
9696
//const double epsr = 1.0e-6;
9797
const double threshold_wg = 1.0e-14;
98-
99-
const std::string Name_Angular[5][11] =
100-
{
101-
{"s"},
102-
{"px", "py", "pz"},
103-
{"d3z^2-r^2", "dxy", "dxz", "dx^2-y^2", "dyz"},
104-
{"f5z^2-3r^2", "f5xz^2-xr^2", "f5yz^2-yr^2", "fzx^2-zy^2", "fxyz", "fx^3-3*xy^2", "f3yx^2-y^3"},
105-
{"g1", "g2", "g3", "g4", "g5", "g6", "g7", "g8", "g9"}
106-
};
10798
}
10899

109100
#endif

source/src_io/energy_dos.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void energy::perform_dos(Local_Orbital_wfc &lowf, LCAO_Hamilt &uhm)
553553
const int m1 = atom1->iw2m[j];
554554
out <<std::setw(5) << i << std::setw(8)
555555
<< GlobalC::ucell.atoms[t].label <<std::setw(5)
556-
<<L1<<std::setw(5) <<m1<<std::setw(5)<<N1+1<<std::setw(15)<< ModuleBase::Name_Angular[L1][m1] << std::endl;
556+
<<L1<<std::setw(5) <<m1<<std::setw(5)<<N1+1<<std::setw(15)<< GlobalC::en.Name_Angular[L1][m1] << std::endl;
557557
}
558558
}
559559
out <<std::endl<<std::endl;
@@ -910,7 +910,7 @@ void energy::perform_dos(Local_Orbital_wfc &lowf, LCAO_Hamilt &uhm)
910910
const int m1 = atom1->iw2m[j];
911911
out <<std::setw(5) << i << std::setw(8)
912912
<< GlobalC::ucell.atoms[t].label <<std::setw(5)
913-
<<L1<<std::setw(5) <<m1<<std::setw(5)<<N1+1<<std::setw(15)<< ModuleBase::Name_Angular[L1][m1] << std::endl;
913+
<<L1<<std::setw(5) <<m1<<std::setw(5)<<N1+1<<std::setw(15)<< GlobalC::en.Name_Angular[L1][m1] << std::endl;
914914
}
915915
}
916916
out <<std::endl<<std::endl;

source/src_pw/energy.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ class energy
5858

5959
int out_dos; // control dos calculation
6060
int out_band; // control band calculation pengfei 2014-10-13
61+
const std::string Name_Angular[5][11] =
62+
{
63+
{"s"},
64+
{"px", "py", "pz"},
65+
{"d3z^2-r^2", "dxy", "dxz", "dx^2-y^2", "dyz"},
66+
{"f5z^2-3r^2", "f5xz^2-xr^2", "f5yz^2-yr^2", "fzx^2-zy^2", "fxyz", "fx^3-3*xy^2", "f3yx^2-y^3"},
67+
{"g1", "g2", "g3", "g4", "g5", "g6", "g7", "g8", "g9"}
68+
}; // name of atomic orbital jiyy add 2022-05-10
6169

6270
double dos_emin_ev;
6371
double dos_emax_ev;

0 commit comments

Comments
 (0)