1 | #!/bin/sh
2 |
3 | echo " TRACK_CELLS v1.0"
4 | echo " Description : Create Track.in in order calculate incident fluxes normal to surface"
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/TRACK_CELLS_$DOM_VERSION.e_$DOM_HOSTTYPE"
22 |
23 | if [ -f 'track_cells.choices' ]
24 | then
25 |
26 | make clean -f $DOMHOME/TOOLS/TRACK_CELLS/Makefile
27 | make -f $DOMHOME/TOOLS/TRACK_CELLS/Makefile all
28 | $TOOLEXEDIR/TRACK_CELLS_$DOM_VERSION.e_$DOM_HOSTTYPE
29 | else
30 | echo " -- No TRACK_CELLS.choices file found, copying default file."
31 | echo " Fill choices file and run again TRACK_CELLS"
32 | cp $CHOICESD/track_cells.choices .
33 | fi