Skip to content

Commit 4ed83d1

Browse files
authored
Merge pull request #486 from OpenBioSim/backport_485
Backport fix from PR #485
2 parents 934f84c + 9e41c44 commit 4ed83d1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

python/BioSimSpace/Sandpit/Exscientia/Protocol/_config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,8 @@ def generateGromacsConfig(
535535
protocol_dict["pcoupl"] = "Berendsen" # Berendsen barostat.
536536
# Do the MC move every 100 steps to be the same as AMBER.
537537
protocol_dict["nstpcouple"] = 100
538-
# 4ps time constant for pressure coupling.
539-
# As the tau-p has to be 10 times larger than nstpcouple * dt (4 fs)
540-
protocol_dict["tau-p"] = 4
538+
# 25 times larger than nstpcouple * dt.
539+
protocol_dict["tau-p"] = 2500 * timestep
541540
protocol_dict["ref-p"] = (
542541
f"{self.protocol.getPressure().bar().value():.5f}" # Pressure in bar.
543542
)

python/BioSimSpace/_Config/_gromacs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ 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+
# 25 times larger than nstpcouple * dt.
192+
protocol_dict["tau-p"] = 2500 * timestep
191193
# Pressure in bar.
192194
protocol_dict["ref-p"] = (
193195
f"{self._protocol.getPressure().bar().value():.5f}"

0 commit comments

Comments
 (0)