Skip to content
Snippets Groups Projects
Commit 55da8fe4 authored by PZ's avatar PZ
Browse files

OBS, ELD, and XAS working under Windows now

RIXS leads to out of memory error under Windows.
parent e220f5c7
No related branches found
No related tags found
No related merge requests found
File added
......@@ -228,7 +228,8 @@ function [ output_args ] = createLUAMain( handles, mapSaveDir, luaBaseName, mtTa
fprintf(fidOut, [' Spectrum.Print({{"file",mapSavePath .. mapBaseName .. "-" .. strXAS .. "-" .. strXES .. "-Spec.txt"}}); ' '\n']);
fprintf(fidOut, [' end ' '\n']);
fprintf(fidOut, [' ' '\n']);
fprintf(fidOut, [' return Spectrum; ' '\n']);
fprintf(fidOut, [' ' 'collectgarbage() ' '\n']);
fprintf(fidOut, [' return Spectrum; ' '\n']);
fprintf(fidOut, ['end ' '\n']);
fprintf(fidOut, ['-- **************************************************************************************** ' '\n']);
fprintf(fidOut, ['-- **************************************************************************************** ' '\n']);
......@@ -247,6 +248,7 @@ function [ output_args ] = createLUAMain( handles, mapSaveDir, luaBaseName, mtTa
fprintf(fidOut, ['SpectraLCP = 1 * SpectraLCP + calculateRIXS(TXASl, TXESz, "lcp", "z", saveOn ); ' '\n']);
fprintf(fidOut, ['SpectraLCP.Print({{"file",mapSavePath .. mapBaseName .. "-LCP-Spec.txt"}}); ' '\n']);
end
fprintf(fidOut, [' ' 'collectgarbage() ' '\n']);
if mtTags(3) == 1 % mtTag = [111] selects block depending on multithread mode
fprintf(fidOut, [' ' '\n']);
fprintf(fidOut, ['SpectraRCP = 1 * calculateRIXS(TXASr, TXESx, "rcp", "x", saveOn ); ' '\n']);
......
This is the Source Code package for Quanty4RIXS (dated June 2017).
This is the Source Code package for Quanty4RIXS (dated September 2017).
You can use it and redistribute it to who ever finds it useful.
The only request I have, is that a reference to me (Patric Zimmermann) as initial author is given when the source code is copied elsewhere.
The only request I have, is that a reference to me (Patric Zimmermann, Utrecht University, 2017) as initial author is given when the source code is copied elsewhere.
A corresponding publication with some instructions is also in the making.
1.)
The folder Quanty4RIXS-Source contains the last version of the source code. You can copy its content whereever you like.
Then just open the file Quanty4RIXS.m in Matlab and run it. This should open the GUI.
Then just open the file Quanty4RIXS.m in Matlab (v2016a or newer) and run it. This should open the GUI. On start up tit checks that the Quanty binary and the repository is found, if it is not in the standard path it should ask for the path.
2.)
The “RepositoryFolder” contains the repository named “Quanty4RIXS”. The contents of this repository need to be present in your home directory.
The “RepositoryFolder” is the folder named “Quanty4RIXS”. The contents of this repository need to be present to run the GUI.
On Mac OSX that is: /Users/<Your Username>/Quanty4RIXS/
On windows it can also be in C:\ Quanty4RIXS
On Windows it can also be in C:\ Quanty4RIXS
In any case the folder and its subdirectories need write access, as the configuration is saved in the file Quanty4RIXS.cfg.
The subfolder "Quanty" contains the lua modules/sections that are being used to assemble the final lua scripts.
The subfolder "Resources" contains the RCN parameter file and the programs configurations file (Quanty4RIXS.cfg).
The config file is in Matlab format, if you change the ending to .mat you can open it in Matlab and edit it when required.
(It contains also a path that needs perhaps some adjustment to get the program to run properly. But that has not yet been tested. Maybe it does work anyway.)
(It contains also a path that needs perhaps some adjustment to get the program to run properly.)
NOTE: Currently we are testing the software under Windows, there are still some issues when running the scripts with Quanty.
NOTE: Currently we are testing the software under Windows, there are still some issues when running the scripts with Quanty. Especially RIXS calculations can lead to memory issues. We recommend using it under Mac OSX.
The calculation of the “Observables” is already working under Windows, but ELD and RIXS still triggers errors from Quanty.
(This is like to be due to the fact that *nix and Windows systems treat text differently and because of the “\” vs “/”.)
\ No newline at end of file
The calculation of the “Observables”, “EnergyLevelDiagrams (ELD)” (also called Tanabe Sugano Diagram), and 1s XAS calculations are already working under Windows, but RIXS can trigger errors from Quanty. (This is like to be due to an out if memory.)
\ No newline at end of file
......@@ -45,6 +45,7 @@ for i=0, 3000 do
file:write(string.format("%13.10f ",energy))
end
file:write("\n")
collectgarbage()
end
-- **********************************************************************************************************************************
......@@ -84,6 +85,7 @@ for i=-100, 100 do
file:write(string.format("%13.10f ",energy))
end
file:write("\n")
collectgarbage()
end
-- **********************************************************************************************************************************
......@@ -123,6 +125,7 @@ for i=-100, 100 do
file:write(string.format("%13.10f ",energy))
end
file:write("\n")
collectgarbage()
end
-- **********************************************************************************************************************************
......@@ -167,19 +170,13 @@ for i=0, 100 do
file:write(string.format("%13.10f ",energy))
end
file:write("\n")
collectgarbage()
end
-- **********************************************************************************************************************************
io.write("\n")
file:close()
collectgarbage()
-- **********************************************************************************************************************************
-- *** END 10Dq energy diagramm ***************************************************************************************************
-- **********************************************************************************************************************************
......@@ -32,6 +32,7 @@ if Npsi > 1 then
end;
io.write("\n")
end
collectgarbage()
io.write("#IS --- Intermediate State --------------------------------------------------------------- \n");
for key,psi in pairs(psiList_IS) do
......@@ -42,6 +43,7 @@ if Npsi > 1 then
end;
io.write("\n")
end
collectgarbage()
io.write("#FS --- Final State --------------------------------------------------------------- \n");
for key,psi in pairs(psiList_FS) do
......@@ -51,7 +53,8 @@ if Npsi > 1 then
io.write(string.format("%6.3f ",v))
end;
io.write("\n")
end
end
collectgarbage()
io.close(file) -- closes the open file
end
......
No preview for this file type
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment