Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/relentless/simulate/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ def _convert_to_data_file(self, sim):
# fix up 2d boxes that may not be compatible with lammps
if dimension == 2:
if frame.configuration.box[2] == 0:
snap.low[2] = -0.5
snap.high[2] = 0.5
snap.box.low[2] = -0.5
snap.box.high[2] = 0.5
if snap.box.tilt is not None:
snap.box.tilt[1:] = 0.0
lammpsio.DataFile.create(
Expand Down
Loading