1 | #!/bin/sh
2 |
3 | echo " BALANCE_FLUX v1.0"
4 | echo " Description : Calculate how many times a cell is used for the quadrature"
5 |
6 | #
7 | # Path definitions
8 | #
9 |
10 | LOCALDIR=`pwd`
11 | CHOICESD=$DOMHOME/TOOLS/CHOICES
12 | TOOLEXEDIR=$DOMHOME/HOSTS/$DOM_HOSTTYPE
13 |
14 |
15 |
16 |
17 | #
18 | # Detect if all files are ready for run
19 | #
20 |
21 | echo "$TOOLEXEDIR/BALANCE_FLUX_$DOM_VERSION.e_$DOM_HOSTTYPE"
22 |
23 | if [ -f 'balance_flux.choices' ]
24 | then
25 |
26 | make clean -f $DOMHOME/TOOLS/BALANCE_FLUX/Makefile
27 | make -f $DOMHOME/TOOLS/BALANCE_FLUX/Makefile all
28 | $TOOLEXEDIR/BALANCE_FLUX_$DOM_VERSION.e_$DOM_HOSTTYPE
29 | else
30 | echo " -- No BALANCE_FLUX.choices file found, copying default file."
31 | echo " Fill choices file and run again BALANCE_FLUX"
32 | cp $CHOICESD/balance_flux.choices .
33 | fi