SpinW / spinw

SpinW Matlab library for spin wave calculation
http://www.spinw.org
GNU General Public License v3.0
35 stars 15 forks source link

Error in spinw.fourier ( Unrecognized variable nMag0 ) #151

Closed KULDEEP-KARGETI closed 7 months ago

KULDEEP-KARGETI commented 10 months ago

Q = [0 1 0] F = fourier( Cr, Q, 'isomode', 'auto')

While running this in MATLAB, I am getting error given below.

Unrecognized function or variable 'nMag0'

Error in spinw/fourier (line 292) res.ft = ft*(nMag/nMag0);

Thank you For your suggestion.

mducle commented 10 months ago

@KULDEEP-KARGETI thanks for reporting this. I've just committed a fix. In the mean time you can use this file:

fourier_m.zip

(unzip and put it in the swfiles/@spinw folder of SpinW).