@@ -55,8 +55,10 @@ void Grid_MeshK::cal_extended_cell(const int &dxe, const int &dye, const int &dz
5555 this ->minu2 = (-dye+1 ) / nby - 1 ;
5656 this ->minu3 = (-dze+1 ) / nbz - 1 ;
5757
58- if (PARAM.inp .test_gridt )ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," MaxUnitcell" ,maxu1,maxu2,maxu3);
59- if (PARAM.inp .test_gridt )ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," MinUnitcell" ,minu1,minu2,minu3);
58+ if (PARAM.inp .test_gridt ) {ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," MaxUnitcell" ,maxu1,maxu2,maxu3);
59+ }
60+ if (PARAM.inp .test_gridt ) {ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," MinUnitcell" ,minu1,minu2,minu3);
61+ }
6062
6163 // --------------------------------------
6264 // number of unitcell in each direction.
@@ -66,8 +68,10 @@ void Grid_MeshK::cal_extended_cell(const int &dxe, const int &dye, const int &dz
6668 this ->nu3 = maxu3 - minu3 + 1 ;
6769 this ->nutot = nu1 * nu2 * nu3;
6870
69- if (PARAM.inp .test_gridt )ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," UnitCellNumber" ,nu1,nu2,nu3);
70- if (PARAM.inp .out_level != " m" ) ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," UnitCellTotal" ,nutot);
71+ if (PARAM.inp .test_gridt ) {ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," UnitCellNumber" ,nu1,nu2,nu3);
72+ }
73+ if (PARAM.inp .out_level != " m" ) { ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running," UnitCellTotal" ,nutot);
74+ }
7175
7276
7377 this ->ucell_index2x = std::vector<int >(nutot, 0 );
0 commit comments