tsdev / spinw

SpinW Matlab library for spin wave calculation
www.psi.ch/spinw
GNU General Public License v3.0
30 stars 35 forks source link

Change spinw.addg and spinw.addaniso to accept string options #35

Open tsdev opened 7 years ago

tsdev commented 7 years ago

Change spinw.addg and spinw.addaniso to accept string options similarly to spinw.addcoupling. Also fix the bug in spinw.addg to enable specify atoms where g-tesor is assigned. Currently errors out when non-magnetic atoms are also present in the structure.