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

fix pos scaling (ang2nm) in lammps data reader #697

Merged
merged 2 commits into from
Jul 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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