Skip to content

Commit 53bbb5c

Browse files
Undo the damage
1 parent 1bd2e9a commit 53bbb5c

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

Modules/Relax.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
__RELAX_TARGET_PRESSURE__ = "target_pressure"
3333
__RELAX_FIXVOLUME__ = "fix_volume"
3434
__RELAX_BULK_MODULUS__ = "bulk_modulus"
35-
__RELAX_SOBOL__ = "sobol_sampling"
36-
__RELAX_SOBOL_SCATTER__ = "sobol_scatter"
3735

3836
__TYPE_SINGLE__ = "sscha"
3937
__TYPE_RELAX__ = "relax"
@@ -205,14 +203,6 @@ def setup_from_namelist(self, namelist):
205203
if __RELAX_FIXVOLUME__ in keys:
206204
self.fix_volume = bool(c_info[__RELAX_FIXVOLUME__])
207205

208-
# ****Diegom_test****
209-
self.sobol = False
210-
if __RELAX_SOBOL__ in keys:
211-
self.sobol = bool(c_info[__RELAX_SOBOL__])
212-
213-
self.sobol_scatter = 0.0
214-
if __RELAX_SOBOL_SCATTER__ in keys:
215-
self.sobol_scatter = np.float64(c_info[__RELAX_SOBOL_SCATTER__])
216206

217207
# Check the allowed keys
218208
for k in keys:
@@ -267,7 +257,7 @@ def setup_custom_functions(self, custom_function_pre = None,
267257

268258

269259
def relax(self, restart_from_ens = False, get_stress = False,
270-
ensemble_loc = None, start_pop = None, sobol = self.sobol, sobol_scramble = False, sobol_scatter = self.sobol_scatter):
260+
ensemble_loc = None, start_pop = None, sobol = False, sobol_scramble = False, sobol_scatter = 0.0):
271261
"""
272262
COSTANT VOLUME RELAX
273263
====================
@@ -392,7 +382,7 @@ def relax(self, restart_from_ens = False, get_stress = False,
392382
def vc_relax(self, target_press = 0, static_bulk_modulus = 100,
393383
restart_from_ens = False,
394384
ensemble_loc = None, start_pop = None, stress_numerical = False,
395-
cell_relax_algorithm = "sd", fix_volume = False, sobol = self.sobol, sobol_scramble = False, sobol_scatter = self.sobol_scatter):
385+
cell_relax_algorithm = "sd", fix_volume = False, sobol = False, sobol_scramble = False, sobol_scatter = 0.0):
396386
"""
397387
VARIABLE CELL RELAX
398388
====================

0 commit comments

Comments
 (0)