Salome HOME
Merge from V6_main 01/04/2013
[tools/yacsgen.git] / Examples / ast2 / README.txt
1 A Code_Aster standalone component (in executable form)
2 ===========================================================
3
4 To build this example, modify the files ../context.py, ../makefile.inc, fcompo/Makefile, myaster/config.txt, myaster/Makefile
5 to take into account your configuration.
6
7 1- your prerequisite file 
8 2- your KERNEL_ROOT_DIR
9 3- your Code_Aster installation
10 4- your FORTRAN compiler
11
12 Then set the environment (including PYTHONPATH for YACSGEN, ../.. from here)::
13
14   source <your prerequisite file>
15
16 process components.py ::
17
18   python components.py
19
20 You should get a SALOME module in source form (astmod_SRC), its installation (install) and
21 a SALOME application (appli) composed of modules KERNEL, GUI, YACS and the new module astmod_SRC.
22
23 Build the fcompo executable, under the SALOME application environment::
24
25   cd fcompo
26   ../appli/runSession make
27
28 Build the Code_Aster executable ::
29
30   cd myaster
31   modify the config.txt for your SALOME Installation
32   make
33
34 Modify the exeaster script that drives the ASTER execution (change the files path)
35
36 To run a coupling:
37
38  1. start SALOME in background : ./appli/runAppli -t
39  2. start a SALOME session : ./appli/runSession
40  3. start YACS coupler with coupling file : driver coupling.xml
41  4. examine output files in /tmp
42  5. shutdown SALOME : shutdownSalome.py
43  6. exit session : CTRL-D (or exit)