Skip to content

Commit c349830

Browse files
author
davidcorteso
committed
Fixed openmp option in NEBM base, the parameter was not being set correctly
1 parent 97c88f5 commit c349830

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fidimag/common/nebm_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def __init__(self, sim,
172172
openmp=False
173173
):
174174

175+
self.openmp = openmp
176+
175177
# Degrees of Freedom per spin
176178
self.dof = dof
177179

@@ -339,12 +341,12 @@ def save_npys(self, coordinates_function=None):
339341
np.save(name, self.band[i])
340342
self.band.shape = (-1)
341343

342-
def initialise_integrator(self, rtol=1e-6, atol=1e-6, openmp=False):
344+
def initialise_integrator(self, rtol=1e-6, atol=1e-6):
343345
self.t = 0
344346
self.iterations = 0
345347
self.ode_count = 1
346348

347-
if not openmp:
349+
if not self.openmp:
348350
self.integrator = cvode.CvodeSolver(self.band,
349351
self.Sundials_RHS)
350352
self.integrator.set_options(rtol, atol)

0 commit comments

Comments
 (0)