source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/util/oasisgui/README @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 5 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

File size: 4.0 KB
Line 
1============================================================================================
2The OASISGUI is an application of the software OPENTEA developped at CERFACS in the CFD group
3by Antoine Dauptain.
4Below are the instructions to run oasisgui to create the configuration file namcouple of
5OASIS3-MCT on a Linux computer.
6============================================================================================
7In the directory oasisgui you have different directories:
8- examples_xml_namcouple : two examples of xml files and their corresponding namcouple files
9- opentea: sources of the software
10- library: applications developped using OPENTEA (typically OASIS3-MCT application)
11- XDRpy: main generic python tools for OPENTEA interface
12and you have different files:
13- gittag: reference under git repository
14- myconfig.xml: my configuration file
15- README: explanations
16
17
18####
19If you use a MAC to log on the X11 terminal where the GUI will be executed, you must
20modify the X11/OSX Focus correction putting <focusCorrection value="1"/> in
21your configuration "myconfig.xml" file.
22You can also use the menu "Config" directly in the software to modify the file
23"myconfig.xml" but the new parameters will be activated only after closing and re-launching the GUI.
24
25####
26Before launching opentea, you must make sure that wish (based on tcl/tk version 8.5 or later) and
27Python (version 2.6 or later) are installed on your platform and that they are configured to run opentea.
28- to have the version of Python : >python -V
29- to have the version of tcl/tk : >echo "puts [info tclversion]" | tclsh
30
31Your PYTHONPATH must include the $dir/oasis3-mct/util/oasisgui/XDRpy directory
32("dir" is the repository where is located oasis3-mct on your computer):
33In your .cshrc you must add :
34----------------------------------------------------------
35setenv OASISGUIHOME $dir/oasis3-mct/util/oasisgui
36if ($?PYTHONPATH) then
37   setenv PYTHONPATH $OASISGUIHOME/XDRpy:$PYTHONPATH
38else
39   setenv PYTHONPATH $OASISGUIHOME/XDRpy
40endif
41----------------------------------------------------------
42In your .bashrc you must add :
43----------------------------------------------------------
44export OASISGUIHOME=$dir/oasis3-mct/util/oasisgui
45if [ "x${PYTHONPATH}" == "x" ]
46then
47export PYTHONPATH=$OASISGUIHOME/XDRpy
48else
49export PYTHONPATH=$OASISGUIHOME/XDRpy:$PYTHONPATH
50fi
51----------------------------------------------------------
52
53
54####
55To be able to launch easily opentea using the command wish, you should also create the
56alias "oasisgui" to launch the software:
57---------------------------------------------
58in ksh :
59alias oasisgui 'wish $OASISGUIHOME/opentea/opentea.tcl -config $OASISGUIHOME/myconfig.xml -code oasis3-mct &'
60---------------------------------------------
61in bash :
62alias oasisgui='wish $OASISGUIHOME/opentea/opentea.tcl -config $OASISGUIHOME/myconfig.xml -code oasis3-mct &'
63---------------------------------------------
64
65
66#####
67Once you have launch oasisgui, you must fill up the different tabs from the left
68to the right. Each window must be validated (button "process" on the bottom on the
69right in the window).
70An orange bullet in the tab means that no information was stored yet in the window,
71a red bullet in the tab means that there is an error in the window and a green bullet
72in the tab means that the data entered in the window has been processed and is correct.
73Some documentation about the meaning of the variables is available in the different windows,
74 by clicking on the different blue bullets ("Learn more").
75Validated data are progressively stored in an xml file when filling the GUI. This file
76must be explicitely saved when leaving the GUI (you will be automatically asked for this).
77Once you saved your xml data, you can reload your xml file using the (File/Load as new) menu at
78the left top of the GUI. Do not use the (File/Load as part) menu.
79The configuration file namcouple of OASIS3-MCT will be saved, when ALL THE TABS will
80be validated, in the repository where you saved your xml file, in a subdirectory named
81after your xml file.
Note: See TracBrowser for help on using the repository browser.