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

Commit

Permalink
fix pos scaling (ang2nm) in lammps data reader
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Jul 8, 2021
1 parent 9618cf1 commit 9e62853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 2021.1 (released XX.03.21)
==================================

- format code with clang-12 and drop gmx2020 builds (#691)
- fix pos scaling (ang2nm) in lammps data reader (#697)

Version 2021 (released 13.03.21)
================================
Expand Down
2 changes: 1 addition & 1 deletion src/libcsg/modules/io/lammpsdatareader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ void LAMMPSDataReader::ReadAtoms_(Topology &top) {
}

Eigen::Vector3d xyz_pos(x, y, z);
b->setPos(xyz_pos);
b->setPos(xyz_pos * tools::conv::ang2nm);
}

if (top.BeadCount() != numberOf_["atoms"]) {
Expand Down

0 comments on commit 9e62853

Please sign in to comment.