Skip to content

Issues for addcoupling function error #219

@tingguangli

Description

@tingguangli

Dear Developer,

I have an issue when I run the previous SpinW code (working great about 2 years ago) to calculate the spin wave dispersion, the addcoupling function return the error:
Error using spinw/addcoupling (line 236)
No matrix assigned, since no bond fulfilled the given conditions!

Error in MnO_spinwave (line 67)
MnO.addcoupling('mat','Ja','bond',1,'atom',{'Mn2','Mn2'});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I have uploaded the matlab script as a txt file. I am using MATLAB version 2024b (Mac) and re-installed the SpinW recently and run the run_test.m, but it has the following error:
Error using mex
Supported compiler not detected. For options, visit
https://www.mathworks.com/support/compilers.

Error in sw_mex (line 89)
mex('-v','-largeArrayDims','eig_omp.cpp', 'CXX_FLAGS="-Xclang -fopenmp -pthread"', ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in run_tests (line 43)
sw_mex('compile', true, 'test', false, 'swtest', false);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Could you give me any advice on those issues? Thanks a lot!

Best Regards,
Tingguang
Physics PhD Candidate at Duke University
Delaire Research Group

MnO_spinwave.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions