Skip to content

Commit

Permalink
Fix a bug in xml writer
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Jun 22, 2022
1 parent e74a072 commit 8e97eaf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ void Writer::save_fcs_alamode_oldformat(const System *system,
xml_writer_make_settings<ptree::key_type>(' ', indent,
widen<std::string>("utf-8")));
#else
write_xml(file_fcs, pt, std::locale(),
write_xml(fname_fcs, pt, std::locale(),
xml_writer_make_settings(' ', indent, widen<char>("utf-8")));
#endif

Expand Down Expand Up @@ -893,10 +893,10 @@ void Writer::save_fc2_QEfc_format(const System *system,
for (auto jcrd = 0; jcrd < 3; ++jcrd) {
for (i = 0; i < system->get_supercell().number_of_atoms; ++i) {
for (j = 0; j < system->get_supercell().number_of_atoms; ++j) {
ofs_hes << std::setw(3) << icrd + 1;
ofs_hes << std::setw(3) << jcrd + 1;
ofs_hes << std::setw(3) << i + 1;
ofs_hes << std::setw(3) << j + 1;
ofs_hes << std::setw(6) << icrd + 1;
ofs_hes << std::setw(6) << jcrd + 1;
ofs_hes << std::setw(6) << i + 1;
ofs_hes << std::setw(6) << j + 1;
ofs_hes << std::endl;
ofs_hes << " 1 1 1 " << std::setw(20) << std::setprecision(13)
<< std::scientific << hessian[3 * j + jcrd][3 * i + icrd];
Expand Down

0 comments on commit 8e97eaf

Please sign in to comment.