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

Commit

Permalink
orca coordinate precision
Browse files Browse the repository at this point in the history
  • Loading branch information
JensWehner committed Jan 14, 2021
1 parent 68ab980 commit c1f9a6d
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit c1f9a6d

Please sign in to comment.