Skip to content

Commit

Permalink
Fixed a bug in the PRINTMSD-tag.
Browse files Browse the repository at this point in the history
The code incorrectly print the RMSD instead of MSD.
This bug is now fixed.
  • Loading branch information
ttadano committed Dec 17, 2015
1 parent 9edb765 commit 285a347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anphon/write_phonons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ void Writes::write_msd()

for (j = 0; j < ns; ++j){
d2_tmp = thermodynamics->disp2_avg(T, j, j);
ofs_rmsd << std::setw(15) << std::sqrt(d2_tmp)*Bohr_in_Angstrom;
ofs_rmsd << std::setw(15) << d2_tmp*std::pow(Bohr_in_Angstrom, 2.0);
}
ofs_rmsd << std::endl;
}
Expand Down

0 comments on commit 285a347

Please sign in to comment.