Skip to content

Commit e761797

Browse files
committed
Merge branch 'master' of github.com:SSCHAcode/python-sscha
2 parents ece36a4 + 87a84fa commit e761797

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Modules/SchaMinimizer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __init__(self, ensemble = None, root_representation = "normal",
183183
self.fake_precond = False
184184

185185
# The stopping criteria on which gradient is evaluated
186-
self.gradi_op = "gc"
186+
self.gradi_op = "all"
187187

188188
# Define the stress offset
189189
self.stress_offset = np.zeros((3,3), dtype = np.float64, order = "F")
@@ -1067,6 +1067,9 @@ def run(self, verbose = 1, custom_function_pre = None, custom_function_post = No
10671067
# code when running the minimization. This allows for interactive plots
10681068
running = True
10691069

1070+
if not self.minim_struct:
1071+
self.gradi_op = "gc"
1072+
10701073
# Prepare the minimizer
10711074
self.minimizer = sscha.Minimizer.Minimizer(self.minim_struct, fixed_step= self.fixed_step, root_representation = self.root_representation, verbose = verbose >= 1)
10721075
self.minimizer.init(self.dyn, self.ensemble.get_effective_sample_size() / self.ensemble.N)

0 commit comments

Comments
 (0)