@@ -134,6 +134,7 @@ def __init__(
134134 opencl_platform_index = 0 ,
135135 oversubscription_factor = 1 ,
136136 replica_exchange = False ,
137+ randomise_velocities = False ,
137138 perturbed_system = None ,
138139 gcmc = False ,
139140 gcmc_frequency = None ,
@@ -363,6 +364,9 @@ def __init__(
363364 Whether to run replica exchange simulation. Currently this can only be used when
364365 GPU resources are available.
365366
367+ randomise_velocities: bool
368+ Whether to randomise velocities at the start of each replica exchange cycle.
369+
366370 perturbed_system: str
367371 The path to a stream file containing a Sire system for the equilibrated perturbed
368372 end state (lambda = 1). This will be used as the starting conformation all lambda
@@ -539,6 +543,7 @@ def __init__(
539543 self .opencl_platform_index = opencl_platform_index
540544 self .oversubscription_factor = oversubscription_factor
541545 self .replica_exchange = replica_exchange
546+ self .randomise_velocities = randomise_velocities
542547 self .perturbed_system = perturbed_system
543548 self .gcmc = gcmc
544549 self .gcmc_frequency = gcmc_frequency
@@ -1645,6 +1650,16 @@ def replica_exchange(self, replica_exchange):
16451650 raise ValueError ("'replica_exchange' must be of type 'bool'" )
16461651 self ._replica_exchange = replica_exchange
16471652
1653+ @property
1654+ def randomise_velocities (self ):
1655+ return self ._randomise_velocities
1656+
1657+ @randomise_velocities .setter
1658+ def randomise_velocities (self , randomise_velocities ):
1659+ if not isinstance (randomise_velocities , bool ):
1660+ raise ValueError ("'randomise_velocities' must be of type 'bool'" )
1661+ self ._randomise_velocities = randomise_velocities
1662+
16481663 @property
16491664 def perturbed_system (self ):
16501665 return self ._perturbed_system
0 commit comments