When the number of layers (mesh z size) is 2 or 4, mumax crashes when calculating the MFM kernel. The error message comes from line 38 of mfmkernel.go :
36 util.AssertMsg(size[X]%2 == 0 && size[Y]%2 == 0, "Even kernel size needed")
37 if size[Z] > 1 {
38 util.AssertMsg(size[Z]%2 == 0, "Even kernel size needed")
39 }
Surprisingly (for me...), if you set the mesh size in X or Y to an odd number (127) it calculates the MFM kernel with no problems.
Here's the log of an interactive session, where I set the mesh Z size to 2 and selected the MFM image:
SetMesh(128, 64, 2, 4e-09, 4e-09, 4e-09, 0, 0, 0)
//resizing...
// Initializing geometry 0 %
// Initializing geometry 100 %
calculating MFM kernel
Even kernel size needed
panic: Even kernel size needed
[...]
/home/joao/go/src/github.com/mumax/3/mag/mfmkernel.go:38 +0x631
github.com/mumax/3/cuda.NewMFM(0x1117e20, 0x3e6ad7f29abcaf48, 0x3f50624dd2f1a9fc, 0xc82115f880)
[...]
When the number of layers (mesh z size) is 2 or 4, mumax crashes when calculating the MFM kernel. The error message comes from line 38 of mfmkernel.go :
Surprisingly (for me...), if you set the mesh size in X or Y to an odd number (127) it calculates the MFM kernel with no problems.
Here's the log of an interactive session, where I set the mesh Z size to 2 and selected the MFM image: