1 | #!/bin/sh
2 |
3 | echo " PRISSMA $DOM_VERSION"
4 | #
5 | # Detect number of processes
6 | #
7 | if [ $# -eq 0 ]
8 | then
9 | NP=1
10 | else
11 | NP=$1
12 | fi
13 |
14 | # Path definitions
15 | #
16 |
17 | LOCALDIR=`pwd`
18 | CHOICESD=$DOMHOME/WORK/INPUT
19 | PARADIR=$DOMHOME/SOURCES
20 |
21 | #
22 | # Detect if all files are ready for run
23 | #
24 |
25 | ECHOICES=0
26 | DORUN=1
27 |
28 | if [ -f 'prissma.choices' ]
29 | then
30 | ECHOICES=1
31 | fi
32 |
33 | if [ $ECHOICES -eq 1 ]
34 | then
35 | echo " Choices file found"
36 | else
37 | if [ -f 'domasium.choices' ]
38 | then
39 | echo " -- Old domasium.choices file"
40 | mv -v domasium.choices prissma.choices
41 | DORUN=1
42 | else
43 | cp $CHOICESD/prissma.choices .
44 | echo " -- No prissma.choices file found, copying default file."
45 | echo " Fill the choices file and run again run_para"
46 | DORUN=0
47 | fi
48 | fi
49 |
50 | if [ $DORUN -eq 1 ]
51 | then
52 | make -f $PARADIR/Makefile all
53 | mpiexec -n $NP $DOMHOME/HOSTS/$DOM_HOSTTYPE/mpiprissma_$DOM_VERSION.e_$DOM_HOSTTYPE
54 | fi
55 |