Skip to content

Commit b05c339

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent d8f3d9d commit b05c339

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

source/module_io/write_libxc_r.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void ModuleIO::write_libxc_r(
207207
ofs.open(file_name);
208208

209209
ofs.unsetf(std::ostream::fixed);
210-
ofs << std::setprecision(PARAM.inp.out_xc_r[1]);
210+
ofs << std::setprecision(PARAM.inp.out_wfc_r[1]);
211211
ofs << std::scientific;
212212
}
213213

@@ -238,11 +238,13 @@ void ModuleIO::write_libxc_r(
238238

239239
write_data( "rho", rho, nspin );
240240

241-
if(1!=nspin && 2!=PARAM.inp.nspin)
242-
write_data( "amag", amag, 1 );
241+
if(1!=nspin && 2!=PARAM.inp.nspin) {
242+
write_data( "amag", amag, 1 );
243+
}
243244

244-
if(is_gga)
245-
write_data( "sigma", sigma, (1==nspin)?1:3 );
245+
if(is_gga) {
246+
write_data( "sigma", sigma, (1==nspin)?1:3 );
247+
}
246248

247249
switch( order )
248250
{

0 commit comments

Comments
 (0)