Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

orca coordinate precision #638

Merged
merged 2 commits into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ For more detailed information about the changes see the history of the
Version 2022-dev
===============

- Updated coordinate precision (#638)

Version 2021-dev
===============

Expand Down
6 changes: 3 additions & 3 deletions src/libxtp/qmpackages/orca.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ void Orca::WriteCoordinates(std::ofstream& inp_file,
for (const QMAtom& atom : qmatoms) {
Eigen::Vector3d pos = atom.getPos() * tools::conv::bohr2ang;
inp_file << setw(3) << atom.getElement() << setw(12)
<< setiosflags(ios::fixed) << setprecision(5) << pos.x()
<< setw(12) << setiosflags(ios::fixed) << setprecision(5)
<< setiosflags(ios::fixed) << setprecision(6) << pos.x()
<< setw(12) << setiosflags(ios::fixed) << setprecision(6)
<< pos.y() << setw(12) << setiosflags(ios::fixed)
<< setprecision(5) << pos.z() << endl;
<< setprecision(6) << pos.z() << endl;
}
inp_file << "* \n" << endl;
return;
Expand Down