We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497152b commit 3ecb9cfCopy full SHA for 3ecb9cf
fidimag/common/nebm_FS.py
@@ -245,7 +245,7 @@ def compute_effective_field_and_energy(self, y):
245
# Do not update the extreme images
246
for i in range(1, len(y) - 1):
247
248
- self.sim.set_m(y[i])
+ self.sim.spin[:] = y[i]
249
# elif self.coordinates == 'Cartesian':
250
# self.sim.set_m(self.band[i])
251
@@ -331,7 +331,8 @@ def compute_action(self):
331
# Gnorms2 = np.sum(self.G**2, axis=1) / self.n_spins
332
333
# Compute the root mean square per image
334
- self.gradientENorm[:] = np.sqrt(Gnorms2)
+ # self.gradientENorm[:] = np.sqrt(Gnorms2)
335
+ self.gradientENorm[:] = np.linalg.norm(self.gradientE, axis=1) / self.n_spins
336
self.gradientE.shape = (-1)
337
# self.G.shape = (-1)
338
0 commit comments