1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # ========================================================================
|
---|
4 | #
|
---|
5 | # *
|
---|
6 | # * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
7 | # * Software. It is distributed to you in the hope that it can be a useful
|
---|
8 | # * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
9 | # * It is distributed WITHOUT ANY WARRANTY.
|
---|
10 | # *
|
---|
11 | # * Permission to use, copy, modify and distribute this software and its
|
---|
12 | # * documentation for any purpose is hereby granted without fee,
|
---|
13 | # * provided that the above copyright notice appear in all copies and
|
---|
14 | # * that both that copyright notice and this permission notice appear
|
---|
15 | # * in supporting documentation. It is provided "as is" without express
|
---|
16 | # * or implied warranty.
|
---|
17 | # *
|
---|
18 | #
|
---|
19 | #
|
---|
20 | # Author(s): Daniela Dorner 09/2010 <mailto:daniela.dorner@unige.ch>
|
---|
21 | #
|
---|
22 | # Copyright: MAGIC Software Development, 2000-2010
|
---|
23 | #
|
---|
24 | #
|
---|
25 | # ========================================================================
|
---|
26 | #
|
---|
27 | # This a resource file for the scripts, in which the standard paths and
|
---|
28 | # functions, which are needed more often are stored.
|
---|
29 | #
|
---|
30 |
|
---|
31 | rootsys=/fhgfs/groups/app/magic/software/root_v5.12.00g
|
---|
32 | if ! export | grep $rootsys >|/dev/null
|
---|
33 | then
|
---|
34 | export ROOTSYS=$rootsys
|
---|
35 | export PATH=$PATH:$ROOTSYS/bin
|
---|
36 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
|
---|
37 | fi
|
---|
38 |
|
---|
39 | # queuing system
|
---|
40 | queuesys=pbs # wuerzburg data center
|
---|
41 | pbspath=/cm/shared/apps/torque/2.3.7/bin
|
---|
42 | setwalltime="yes"
|
---|
43 | setpmem="yes"
|
---|
44 |
|
---|
45 |
|
---|
46 | mainpath=/fhgfs/groups/app
|
---|
47 |
|
---|
48 | # logging and setup
|
---|
49 | logpath=$mainpath/fact/datacenter/autologs
|
---|
50 | lockpath=$mainpath/fact/datacenter/locks
|
---|
51 | setuppath=$mainpath/fact/simulated/setup
|
---|
52 |
|
---|
53 | ## paths of data
|
---|
54 | #datapath=/magic/data
|
---|
55 | #subsystempath=/magic/subsystemdata
|
---|
56 | #sequpath=/magic/sequences
|
---|
57 | #datasetpath=/magic/datasets
|
---|
58 |
|
---|
59 | ## paths and setup for mc
|
---|
60 | mcpath=$mainpath/fact/simulated
|
---|
61 | mcsequpath=$mcpath/sequences
|
---|
62 | corsikapath=$mainpath/magic/software/MagicSoft/Simulation/Corsika/Mmcs6500
|
---|
63 | corsikapath=$mainpath/fact/Mmcs6500
|
---|
64 | export FLUPRO=$corsikapath'/fluka2008_3c'
|
---|
65 |
|
---|
66 |
|
---|
67 | #webpath=/www/htdocs/datacenter
|
---|
68 |
|
---|
69 | # get paths for mars, macros and scripts
|
---|
70 | if [ "$SOURCEFILEPATH" = "" ]
|
---|
71 | then
|
---|
72 | mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
|
---|
73 | else
|
---|
74 | mars=`echo $SOURCEFILEPATH | sed -e 's/\/datacenter\/scripts//'`
|
---|
75 | fi
|
---|
76 | macrospath=$mars/datacenter/macros
|
---|
77 | scriptspath=$mars/datacenter/scripts
|
---|
78 | # rcfiles
|
---|
79 | # dependencies of steps
|
---|
80 | steps=$mars/resources/steps_fact.rc
|
---|
81 | # file with db information
|
---|
82 | sqlrc=$mars/sql.rc
|
---|
83 |
|
---|
84 |
|
---|
85 | #addresses to which the errors are sent
|
---|
86 | erradrs="dorner@astro.uni-wuerzburg.de"
|
---|
87 | #addresses to which the changes are sent
|
---|
88 | adrs="dorner@astro.uni-wuerzburg.de"
|
---|
89 |
|
---|
90 |
|
---|
91 | #setup for jobmanager
|
---|
92 | sleeptime=60 #30
|
---|
93 | sleeptimelimit=360 #360
|
---|
94 | errorsleeptimedefault=60 #60
|
---|
95 | max=200 #maximum number of processes for one script in case there are more than one and the others do not have anything to do
|
---|
96 | totalmax=200 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller
|
---|
97 |
|
---|
98 | #
|
---|
99 | # FIXME:
|
---|
100 | # max anz an prozessen setzen
|
---|
101 | # besser Verhaeltnis zwischen den Prozessen und das am besten noch
|
---|
102 | # automatisch anpassen
|
---|
103 | # evtl noch maximale anz an callistos setzen
|
---|
104 | #
|
---|
105 |
|
---|
106 | #hour: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
---|
107 | pnototal=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
108 | pnototalwe=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
109 |
|
---|
110 | pnocorsika=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
111 | pnocorsikawe=( 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 )
|
---|
112 |
|
---|
113 | # set variables for jobmanager
|
---|
114 | scripts=( "runcorsika" )
|
---|
115 | scriptscolname=( "Corsika" )
|
---|
116 | pnosweek=( ${pnocorsika[@]} )
|
---|
117 | pnoswe=( ${pnocorsikawe[@]} )
|
---|
118 |
|
---|
119 | # settings for pbs
|
---|
120 | walltimes=( "72:00:00" )
|
---|
121 | pmems=( "1gb" )
|
---|
122 |
|
---|