@@ -257,7 +257,7 @@ def setup_custom_functions(self, custom_function_pre = None,
257257
258258
259259 def relax (self , restart_from_ens = False , get_stress = False ,
260- ensemble_loc = None , start_pop = None , sobol = False , sobol_scramble = False ):
260+ ensemble_loc = None , start_pop = None , sobol = False , sobol_scramble = False , sobol_scatter = 0.0 ):
261261 """
262262 COSTANT VOLUME RELAX
263263 ====================
@@ -328,7 +328,7 @@ def relax(self, restart_from_ens = False, get_stress = False,
328328 self .minim .ensemble .dyn_0 = self .minim .dyn .Copy ()
329329
330330 if pop != start_pop or not restart_from_ens :
331- self .minim .ensemble .generate (self .N_configs , sobol = sobol , sobol_scramble = sobol_scramble )
331+ self .minim .ensemble .generate (self .N_configs , sobol = sobol , sobol_scramble = sobol_scramble , sobol_scatter = sobol_scatter )
332332
333333 # Compute energies and forces
334334 self .minim .ensemble .compute_ensemble (self .calc , get_stress ,
@@ -380,7 +380,7 @@ def relax(self, restart_from_ens = False, get_stress = False,
380380 def vc_relax (self , target_press = 0 , static_bulk_modulus = 100 ,
381381 restart_from_ens = False ,
382382 ensemble_loc = None , start_pop = None , stress_numerical = False ,
383- cell_relax_algorithm = "sd" , fix_volume = False , sobol = False , sobol_scramble = False ):
383+ cell_relax_algorithm = "sd" , fix_volume = False , sobol = False , sobol_scramble = False , sobol_scatter = 0.0 ):
384384 """
385385 VARIABLE CELL RELAX
386386 ====================
@@ -543,7 +543,7 @@ def vc_relax(self, target_press = 0, static_bulk_modulus = 100,
543543 # Generate the ensemble
544544 self .minim .ensemble .dyn_0 = self .minim .dyn .Copy ()
545545 if pop != start_pop or not restart_from_ens :
546- self .minim .ensemble .generate (self .N_configs , sobol = sobol , sobol_scramble = sobol_scramble )
546+ self .minim .ensemble .generate (self .N_configs , sobol = sobol , sobol_scramble = sobol_scramble , sobol_scatter = sobol_scatter )
547547
548548 # Save also the generation
549549 #if ensemble_loc is not None and self.save_ensemble:
0 commit comments