computationalmodelling / fidimag

Finite DIfference microMAGnetic code, based on Python, Cython and C
http://computationalmodelling.github.io/fidimag/
Other
60 stars 24 forks source link

Demag 2d #135

Closed rpep closed 5 years ago

rpep commented 5 years ago

Disable the saving of the demagnetising tensor.

This was causing an odd error where NaN's appeared in the yz component of the Demagnetising tensor. I haven't attempted to fix this yet; but disabling the saving/loading fixed the issue, so it likely needs rearchitecting. There's a test which checks for NaN values in these tensors now, so it shouldn't happen again!

davidcortesortuno commented 5 years ago

Looks ok. Might be worth checking this functionality in the future to avoid re-calculating the demag tensor in large systems. I guess for now this option is not necessary as the tensor calc should not take long compared to the simulation time