Skip to content

Commit

Permalink
Added the virial callback to the lammps backend to connect to the lam…
Browse files Browse the repository at this point in the history
…mps-dlext side, need work to actually compute the virial contribution from the bias
  • Loading branch information
ndtrung81 committed Mar 11, 2024
1 parent d03cacd commit 845fc89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pysages/backends/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ def update(timestep):

self.set_callback(update)

def virial_from_method(virial):
#virial = sampling_method.get_virial()

self.set_virial_callback(virial_from_method)

def _partial_snapshot(self, include_masses: bool = False):
positions = from_dlpack(dlext.positions(self.view, self.location))
types = from_dlpack(dlext.types(self.view, self.location))
Expand Down

0 comments on commit 845fc89

Please sign in to comment.