File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ bool Dos::calculate_dos
166166 }
167167 std::vector<double > dos;
168168 std::vector<double > ene;
169- std::vector<double > dos2 ; // dos_smearing
169+ std::vector<double > dos_smearing ; // dos_smearing
170170
171171#ifdef __MPI
172172 MPI_Barrier (MPI_COMM_WORLD);
@@ -250,7 +250,7 @@ bool Dos::calculate_dos
250250 // now use Gaussian smearing to smooth the dos and write to DOS_is_smearing
251251 if (GlobalV::MY_RANK==0 )
252252 {
253- dos2 .resize (dos.size ()-1 );
253+ dos_smearing .resize (dos.size ()-1 );
254254
255255 // double b = INPUT.b_coef;
256256 double b = sqrt (2.0 )*GlobalC::en.bcoeff ;
@@ -266,7 +266,7 @@ bool Dos::calculate_dos
266266 // EXPLAIN : if en
267267 // ----------------------------------------------------------
268268 Gauss = exp (-de2/b/b)/sqrt (3.1415926 )/b;
269- dos2 [j] += dos[i]*Gauss;
269+ dos_smearing [j] += dos[i]*Gauss;
270270 }
271271 }
272272
@@ -276,9 +276,9 @@ bool Dos::calculate_dos
276276 double sum2=0.0 ;
277277 for (int i=0 ;i<dos.size ()-1 ;i++)
278278 {
279- sum2 += dos2 [i];
279+ sum2 += dos_smearing [i];
280280 ofs1 <<std::setw (20 )<<ene[i]
281- <<std::setw (20 )<<dos2 [i]
281+ <<std::setw (20 )<<dos_smearing [i]
282282 <<std::setw (20 )<<sum2<<" \n " ;
283283 }
284284 }
You can’t perform that action at this time.
0 commit comments