Skip to content

Commit 503e1b8

Browse files
committed
test_cvode_serial.py
1 parent 1aa85e3 commit 503e1b8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sandbox/parallel-cvode/test_cvode_serial.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def init_m(pos):
4343
gamma = 2.211e5 # gyromagnetic ration (m/As)
4444

4545
# Create simulation object.
46-
sim = fidimag.micro.Sim(mesh, integrator='sundials')
46+
sim = fidimag.micro.Sim(mesh)
4747
sim.Ms = Ms_function(Ms)
4848
sim.alpha = alpha
4949
sim.gamma = gamma
@@ -53,13 +53,9 @@ def init_m(pos):
5353
sim.add(fidimag.micro.DMI(D=D))
5454
#sim.add(Demag())
5555

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-
6056
# Initialise the system.
6157
sim.set_m(init_m)
6258
a = time.time()
6359
sim.run_until(5e-9)
6460
b = time.time()
65-
print(b - a)
61+
print('elpased time: %g'%(b - a))

0 commit comments

Comments
 (0)