Skip to content

Commit b299186

Browse files
author
Weiwei Wang
committed
start to tidy up the sllg
1 parent 8ddfaa8 commit b299186

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

fidimag/atomistic/lib/clib.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,5 +355,6 @@ cdef class RK2S(object):
355355

356356
def run_until(self, t):
357357
while (self.t<t):
358+
print "from cython %g"%self.t
358359
self.run_step()
359360
return 0

fidimag/atomistic/sllg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def set_options(self, dt=1e-15, theta=1.0, gamma=const.gamma, k_B=const.k_B):
3434

3535
self.gamma = gamma
3636
self.k_B = k_B
37+
print 'self.n=',self.n
3738

3839
self.vode = clib.RK2S(dt,
3940
self.n,
@@ -53,6 +54,6 @@ def update_effective_field(self, y, t):
5354
self.spin[:] = y[:]
5455

5556
self.field[:] = 0
56-
57+
return 0
5758
for obj in self.interactions:
5859
self.field += obj.compute_field(t)

tests/test_llg_atomistic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def disable_test_sim_single_spin_llg_stt(do_plot=False):
308308
# test_sim_init_m_fun()
309309
# test_sim_T_fun()
310310
# test_sim_single_spin_vode(do_plot=True)
311-
#test_sim_single_spin_sllg(do_plot=True)
311+
test_sim_single_spin_sllg(do_plot=True)
312312
# test_sim_single_spin_llg_stt(do_plot=True)
313313
# test_sim_single_spin(do_plot=True)
314314

315-
test_sim_spins(do_plot=True)
315+
#test_sim_spins(do_plot=True)

0 commit comments

Comments
 (0)