forked from tsdev/spinw
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new mex to run inner loop of spinwave.m in parallel (#163)
* Add new mex to run inner loop of spinwave.m in parallel The new mex file uses Eigen for linear algebra and standard C++11 threads. Eigen operations are numerically slightly different from the BLAS/LAPACK/MKL routines used by Matlab and other mex files so there will be discrepancies. Also, Eigen eig/chol operations are serial unlike MKL so will be much slower for large system. So, the new code has a check and will use the old mex files for these systems * Fix sw_mex.m issue downloading Eigen * Compute incommensurate phase in mex * swloop: improve error handling; add unit tests * Add field and biquadratic mex systemtests * Add twin rotation to swloop mex * PR changes * Add comments to swloop input fields. Updated docstring * Removed erroneous "Very baaaad!" error message * Change nThreads parameter in C++ to default to number of cores if input Matlab parameter (pref.nthread) is set to -1 * Add pref.nspinlarge parameter to determine whether to use new swloop (good for small systems) or old mex files. * Add unit test for swpref.nthread and nspinlarge
- Loading branch information
Showing
12 changed files
with
994 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.