-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
233 changed files
with
6,912 additions
and
3,621 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<img src="spinw_logo.png" width="150"> | ||
<img src="spinw3_logo.png" width="150"> | ||
|
||
**SpinW** is a Matlab library that can calculate magnetic structure using mean field theory and spin wave dispersion and spin-spin correlation function for complex crystal structures. | ||
**SpinW** is a Matlab library that can optimize magnetic structures using mean field theory and calculate spin wave dispersion and spin-spin correlation function for complex crystal and magnetic structures. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
% | ||
|
||
% read file header from sw.m file | ||
fid = fopen('spinw.m'); | ||
fid = fopen('sw_version.m'); | ||
|
||
% first line | ||
fgets(fid); | ||
|
@@ -54,9 +54,11 @@ | |
if nField == 0 | ||
aDir = pwd; | ||
cd(sw_rootdir); | ||
[~, revNum] = system('svn info |grep Revision: |cut -c11-'); | ||
[~, revNum] = system('git rev-list --count HEAD'); | ||
revNum = strtrim(revNum); | ||
%[~, revNum] = system('svn info |grep Revision: |cut -c11-'); | ||
cd(aDir); | ||
revNum = str2double(revNum); | ||
revNum = str2double(revNum)+1e3; | ||
end | ||
|
||
% Matlab version & Symbolic Toolbox | ||
|
@@ -90,15 +92,23 @@ | |
fprintf(['MATLAB version: ' version ', ' strSym '\n']); | ||
|
||
else | ||
ver0 = struct; | ||
ver0.Name = 'SpinW'; | ||
ver0.Version = ''; | ||
ver0.Author = 'S. Toth'; | ||
ver0.Contact = '[email protected]'; | ||
ver0.Revision = ''; | ||
ver0.Date = datestr(now,'dd-mmm-yyyy'); | ||
ver0.License = 'GNU GENERAL PUBLIC LICENSE'; | ||
|
||
if nField == 0 | ||
if any(revNum) | ||
varargout{1}.Revision = num2str(revNum); | ||
else | ||
varargout{1} = struct; | ||
ver0.Revision = num2str(revNum); | ||
end | ||
varargout{1} = ver0; | ||
else | ||
if isempty(verStruct) | ||
varargout{1} = 'beta'; | ||
if isempty(fieldnames(verStruct)) | ||
varargout{1} = ver0; | ||
else | ||
varargout{1} = verStruct; | ||
end | ||
|
Oops, something went wrong.