Closed davidcortesortuno closed 7 years ago
Hi @davidcortesortuno, do you have a small piece of codes to repeat this?
I'm trying to prepare one now, since the simulation that gives the error uses a custom library to generate meshes with polygonal shapes, It could be that when we have a lot of points with mu_s=0
, we have the error
In one of my simulations I'm getting a
FloatingPointError
when thellg
calls thespin_length
function. It seems that some spins that are zero, are represented by a very small number:In the output, there is a very small number at the 20th step.
When
spin_length
tries to square the spin, the simulation throws anumpy
underflow error. I wonder if this is also the cause of other problems in Fidimag. For now, it's difficult for me to debug, because my system doesn't have a trivial mesh geometry.