]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/csh | |
2 | ################################################################# | |
3 | # script to run epos ; argumentS: file name ; version number | |
4 | ################################################################# | |
5 | ||
6 | if ( -e $OPT/$1.optns ) then | |
7 | else | |
8 | echo $OPT/$1.optns "does not exist" | |
9 | exit | |
10 | endif | |
11 | ||
12 | rm -f $CHK/z-$1.check | |
13 | rm -f $CHK/z-$1.data | |
14 | rm -f $CHK/z-$1.copy | |
15 | rm -f $CHK/z-$1.log | |
16 | ||
17 | if ( $OPT == '.' ) then | |
18 | setenv odir `pwd` | |
19 | else | |
20 | setenv odir $OPT | |
21 | endif | |
22 | ||
23 | #--------------------------------------------------------------------- | |
24 | time $OBJ/$SYSTEM/Xepos -n << END | |
25 | echo off | |
26 | set seedj $seedj | |
27 | fname pathnx $EPO/ | |
28 | fname histo $HTO/.s/z-$1.histo | |
29 | fname check $CHK/z-$1.check | |
30 | fname copy $CHK/z-$1.copy | |
31 | fname log $CHK/z-$1.log | |
32 | fname data $CHK/z-$1.data | |
33 | fname initl $EPO/epos.initl | |
34 | fname inidi $EPO/epos.inidi | |
35 | fname inidr $EPO/epos.inidr | |
36 | fname iniev $EPO/epos.iniev | |
37 | fname inirj $EPO/epos.inirj | |
38 | fname inics $EPO/epos.inics | |
39 | fname inigrv $EPO/epos.inigrv | |
40 | fqgsjet dat $EPO/qgsjet/qgsjet.dat | |
41 | fqgsjet ncs $EPO/qgsjet/qgsjet.ncs | |
42 | fqgsjetII dat $EPO/qgsjetII/qgsdat-II-03 | |
43 | fqgsjetII ncs $EPO/qgsjetII/sectnu-II-03 | |
44 | nodecay 120 | |
45 | nodecay -120 | |
46 | nodecay 130 | |
47 | nodecay -130 | |
48 | nodecay -20 | |
49 | nodecay 14 | |
50 | nodecay -14 | |
51 | echo on | |
52 | input $odir/$1.optns | |
53 | echo off | |
54 | input $EPO/epos.param | |
55 | runprogram | |
56 | stopprogram | |
57 | END | |
58 | if ( -s $CHK/z-$1.data ) then | |
59 | echo "###############################################################" | |
60 | echo " output written to $CHK/z-$1.data" | |
61 | echo "###############################################################" | |
62 | else | |
63 | rm -f $CHK/z-$1.data | |
64 | endif | |
65 | if ( -s $CHK/z-$1.check ) then | |
66 | else | |
67 | rm -f $CHK/z-$1.check | |
68 | endif | |
69 | if ( -s $HTO/.s/z-$1.histo ) then | |
70 | else | |
71 | rm -f $HTO/.s/z-$1.histo | |
72 | endif | |
73 | rm -f $CHK/z-$1.log | |
74 | rm -f $CHK/z-$1.copy | |
75 | rm -f gmon.out | |
76 | echo -n "Worker (nanpcw41-nanpcw65) : " | |
77 | hostname | |
78 | date | |
79 | exit | |
80 |