Skip to content

Commit 580a42c

Browse files
committed
Backport fix from #485 into main. [ci skip]
1 parent 934f84c commit 580a42c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/BioSimSpace/_Config/_gromacs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,11 @@ def createConfig(self, version=None, extra_options={}, extra_lines=[]):
186186
protocol_dict["pcoupl"] = "c-rescale"
187187
else:
188188
protocol_dict["pcoupl"] = "berendsen"
189-
# 1ps time constant for pressure coupling.
190-
protocol_dict["tau-p"] = 1
189+
# Do the MC move every 100 steps to be the same as AMBER.
190+
protocol_dict["nstpcouple"] = 100
191+
# 4ps time constant for pressure coupling. The tau-p has to be
192+
# 10 times larger than nstpcouple * dt (4 fs)
193+
protocol_dict["tau-p"] = 4
191194
# Pressure in bar.
192195
protocol_dict["ref-p"] = (
193196
f"{self._protocol.getPressure().bar().value():.5f}"

0 commit comments

Comments
 (0)