Skip to content

Commit d410afc

Browse files
committed
Merge branch 'hotfix2' of https://github.com/Qianruipku/abacus-develop into hotfix2
2 parents 0ed41a4 + 16f6ea5 commit d410afc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

source/module_hamilt_pw/hamilt_pwdft/VL_in_pw.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ pseudopot_cell_vl::~pseudopot_cell_vl()
1919

2020
void pseudopot_cell_vl::init_vloc(const ModulePW::PW_Basis* rho_basis)
2121
{
22-
if(PARAM.inp.use_paw) return;
22+
if(PARAM.inp.use_paw) { return;
23+
}
2324
ModuleBase::TITLE("pseudopot_cell_vl","init_vloc");
2425

2526
// This routine computes the fourier coefficient of the local
@@ -77,8 +78,10 @@ void pseudopot_cell_vl::init_vloc(const ModulePW::PW_Basis* rho_basis)
7778

7879
void pseudopot_cell_vl::allocate(const int ngg)
7980
{
80-
if(PARAM.inp.test_pp>0) ModuleBase::TITLE("pseudopot_cell_vl","allocate");
81-
if(PARAM.inp.use_paw) return;
81+
if(PARAM.inp.test_pp>0) { ModuleBase::TITLE("pseudopot_cell_vl","allocate");
82+
}
83+
if(PARAM.inp.use_paw) { return;
84+
}
8285
this->vloc.create(GlobalC::ucell.ntype, ngg);
8386

8487
delete[] numeric;
@@ -252,7 +255,8 @@ void pseudopot_cell_vl::vloc_of_g(const int& msh,
252255

253256
void pseudopot_cell_vl::print_vloc(const ModulePW::PW_Basis* rho_basis) const
254257
{
255-
if(GlobalV::MY_RANK!=0) return; //mohan fix bug 2011-10-13
258+
if(GlobalV::MY_RANK!=0) { return; //mohan fix bug 2011-10-13
259+
}
256260
bool check_vl = PARAM.inp.out_element_info;
257261
if(check_vl)
258262
{

0 commit comments

Comments
 (0)