Skip to content

Conversation

@bernstei
Copy link
Collaborator

@bernstei bernstei commented Apr 7, 2023

Adds pressure to lammps fix ns/cellmc.

Also fixes a number of serious bugs, including some that really shouldn't have made it this far.

Closes #1

bernstei added 6 commits April 1, 2023 17:20
Add applied pressure to LAMMPS fix ns/cell_mc, add corresponding pytest

Fix serious sign error in lammps fix ns/type (detected when debugging pressure in cell_mc). Hopefully correct derivation documented in comment in ns_configs/ase_atoms/walks_lammps.py. NOTE: should probably add a test comparing ASE and LAMMPS dynamics for fixed mu, to ensure they behave the same

Fix serious bug in step-size tuning that failed to reset walk counters before each pilot walk.

Fix bug in initializing rngs when restarting from snapshot.  Note that restart still isn't perfect because snapshots are in extxyz which has insufficient precision.  This affects some of the restart tests, so loosen tolerance.

HACK: handle calculators that create Calculator.results["energy"] when "free_energy" is passed to Calculator.calculate in properties

Switch from ASE LJ to somewhat faster ASE Morse for pytests (update expected values)

Fix bug in composition vs. full_composition pytest

Fix searching for potential module in sampling pytests
@bernstei
Copy link
Collaborator Author

bernstei commented Apr 7, 2023

@liviabp I added you to this repo. Do you want to test this branch before we merge?

Add test of s-GC to test_sample.py
Pass system_changes=all_changes to all calls to Calculator.calculate so matscipy calculators will work
@liviabp
Copy link
Collaborator

liviabp commented Apr 10, 2023

Thanks, Noam, let's merge it now!

@bernstei bernstei merged commit b871182 into main Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pressure keyword

3 participants