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 1aa85e3 commit 503e1b8Copy full SHA for 503e1b8
sandbox/parallel-cvode/test_cvode_serial.py
@@ -43,7 +43,7 @@ def init_m(pos):
43
gamma = 2.211e5 # gyromagnetic ration (m/As)
44
45
# Create simulation object.
46
-sim = fidimag.micro.Sim(mesh, integrator='sundials')
+sim = fidimag.micro.Sim(mesh)
47
sim.Ms = Ms_function(Ms)
48
sim.alpha = alpha
49
sim.gamma = gamma
@@ -53,13 +53,9 @@ def init_m(pos):
53
sim.add(fidimag.micro.DMI(D=D))
54
#sim.add(Demag())
55
56
-# Since the magnetisation dynamics is not important in this stage,
57
-# the precession term in LLG equation can be set to artificially zero.
58
-sim.do_precession = False
59
-
60
# Initialise the system.
61
sim.set_m(init_m)
62
a = time.time()
63
sim.run_until(5e-9)
64
b = time.time()
65
-print(b - a)
+print('elpased time: %g'%(b - a))
0 commit comments