File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
source/module_hamilt_pw/hamilt_pwdft Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ pseudopot_cell_vl::~pseudopot_cell_vl()
1919
2020void 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
7879void 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
253256void 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 {
You can’t perform that action at this time.
0 commit comments