Skip to content

Commit

Permalink
Added error termination for non-periodic systems
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsaxe committed Jun 28, 2024
1 parent d5fef66 commit 900db1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lammps_step/npt.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def get_input(self, extras=None):

self.description = []

_, configuration = self.get_system_configuration()
if configuration.periodicity == 0:
raise RuntimeError("Cannot run NPT dynamics on non-periodic system!")

P = self.parameters.current_values_to_dict(
context=seamm.flowchart_variables._data
)
Expand Down

0 comments on commit 900db1d

Please sign in to comment.