Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui uspex #16

Merged
merged 56 commits into from
Nov 22, 2018
Merged

Gui uspex #16

merged 56 commits into from
Nov 22, 2018

Conversation

ovhpa
Copy link
Collaborator

@ovhpa ovhpa commented Nov 22, 2018

Dear Prof. Rohl,

I update the USPEX implementation on GDIS in order to cope with its new 10.1 version.
I also made quite some changes:

  • I modified slightly the graph system to include wild plain, dashed, dotted lines and symbols such as triangle, cross, square, diamond. The changes are presented here:
    ovhpa@5097a31#commitcomment-31146215
    Using that new system, the data is now represented a little differently from previous USPEX implementation: missing structures (for ex. from a restarted job) now appears as cross symbols, of course without the possibility to display the missing structure. I also added a basic convex hull representation for variable composition calculations.
    I will improve that graph system at a later time to get some more control (ie. zoom).

  • I create a "carpet" (gui_defs.h) which holds the dust of gtk2 definitions, thanks to that it is much more easy to update GDIS when a gtk2 component goes obsolete... Maybe in the future we can rely on that method to upgrade to gtk3 or even switch to another graphical interface (in which case there would be ideally only one file to modify).
    For now it is just limited to vasp and uspex gui.

  • I added a GUI to be able to launch USPEX jobs directly from GDIS. From a related structure or simply from an empty new model. Each panel have many options which may looks overwhelming.
    panel_1
    panel_2
    panel_3
    But I am happy to say that GDIS supports all options available in USPEX manual, plus some extra undocumented options. That is USPEX support in GDIS is over 100% ;)
    However, to launch USPEX calculations, one has to prepare a small script (since octave or matlab can be use). I have prepare an example of such script here:
    https://gist.github.com/ovhpa/59428fe32b9fd72c1ff3d9f2d3577190

  • Last but not least I heavily modified previous support of reading USPEX results. The result for all calculation types but Transition Path Sampling (for which I need to understand more deeply what to represent) can be displayed. The graphs to analyse the data are however basically the same as in previous implementation:
    Uspex output #13
    But the best structures "BEST" graph now relies directly on USPEX BEST* files. Also, due to some mistake in the display of results by fitness, I have switch back to presenting only energy related results. I will provide an option to display fitness at a later time.

If you find something extra that would be nice to add, please don't hesitate.

ovhpa added 30 commits July 24, 2018 18:48
…e_uspex (1/2) + gl_graph cross symbols for missing data
…le_uspex (2/2) + NEW graph system (symbols, line types, ...)
…; file_uspex: converge saving INPUT.txt with example cases + many fixes
@arohl arohl merged commit ac56818 into arohl:master Nov 22, 2018
@ovhpa ovhpa deleted the gui_uspex branch November 23, 2018 04:55
@arohl
Copy link
Owner

arohl commented Nov 23, 2018 via email

@ovhpa
Copy link
Collaborator Author

ovhpa commented Nov 23, 2018

Dear Prof. Rohl,

I think USPEX v.10.1 can be download from here: http://uspex-team.org/en/uspex/downloads
You will have to write a script similar to https://gist.github.com/ovhpa/59428fe32b9fd72c1ff3d9f2d3577190 to launch calculation directly from gdis, and name it run_uspex.
It will receive a -9 argument when "ver 10.1" is not selected in GDIS gui (at calculation page) and -m when "OCTAVE" is not selected (or both -9 -m if none are selected).

At present I'm not sure in what form USPEX is distributed. If you received a virtual disk version, you will have to either extract the source from it, or modify run_uspex script so it call USPEX through the virtual disk interface.

If you use 9.4.4, you can simply go to its src directory and prepare a src.tar.gz archive of it and place it under /opt/uspex/mat/944 and /opt/uspex/oct/944 directories if you plan to use my script. No modification should be required to run it from matlab or octave*

For 10.1, there are some modifications to run it from octave/matlab which I haven't report to USPEX team yet. I will do it after I come back from weekend (it is a 3-days long weekend in Japan right now).

In any case you can still save an INPUT.txt file with the save button of GDIS gui and launch USPEX from its usual command.

If you need further assistance, please let me know,

* however if you run USPEX with Octave, I recommend that you add the following line in the beginning (3rd line for ex.) of USPEX.m file:
warning('off', 'Octave:possible-matlab-short-circuit-operator');
to remove the numerous unnecessary warning ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants