1 | #!/bin/sh
2 |
3 | echo " SOLINIT_AVBP v1.0"
4 | echo " Description : tool to create an initial solution for PRISSMA from an AVBP solution"
5 |
6 | #
7 | # Path definitions
8 | #
9 |
10 | LOCALDIR=`pwd`
11 | CHOICESD=$DOMHOME/TOOLS/CHOICES
12 | TOOLDIR=$DOMHOME/TOOLS/SOLINIT_AVBP
13 |
14 | #
15 | # Detect if all files are ready for run
16 | #
17 |
18 | ECHOICES=0
19 | DORUN=1
20 |
21 | if [ -f 'solinit_avbp.choices' ]
22 | then
23 | ECHOICES=1
24 | fi
25 |
26 |
27 | if [ $ECHOICES -eq 1 ]
28 | then
29 | echo " Choices file found"
30 | else
31 | cp $CHOICESD/solinit_avbp.choices .
32 | echo " -- No solinit_avbp.choices file found, copying default file."
33 | echo " Fill the choices file and run again solinit_avbp"
34 | DORUN=0
35 | fi
36 |
37 | if [ $DORUN -eq 1 ]
38 | then
39 | make -f $TOOLDIR/Makefile all
40 | $DOMHOME/HOSTS/$DOM_HOSTTYPE/solinit_avbp_$DOM_VERSION.e_$DOM_HOSTTYPE
41 | fi