@@ -4,7 +4,11 @@ function how_to_use() {
44 cat << EOF
55
66 ` basename $0 ` (-h) [action] [option]
7- to manage the submission of sixtrack jobs
7+ To manage the submission of sixtrack jobs.
8+ By default, the script will generate/check/submit
9+ only those points that have not been submitted yet or do not have results yet.
10+ In case of re-submitting incomplete jobs, the list of jobs is pre-defined by SixDesk,
11+ and the loop will be run on the entire list.
812
913 -h displays this help
1014
@@ -41,6 +45,9 @@ function how_to_use() {
4145 for the moment, this sticks only to expressions affecting ratio of
4246 emittances, amplitude scans and job names in fort.3
4347 -d study name (when running many jobs in parallel)
48+ -F in case of preparation/check/submission of files, do not check if results
49+ are already present or the job has been already simulated,
50+ but forcely re-run any point in the scan.
4451 -l use fort.3.local (only for generation/fixing)
4552 -m a batch of BOINC jobs should be composed of at most
4653 N jobs (active only in case of BOINC platform - default: ${nMaxJobsSubmitBoincDef} ).
@@ -71,17 +78,7 @@ function how_to_use() {
7178 NB: when used with -S option, it is your responsibility to make sure that
7279 there are no points in the scan that should be submitted but they are
7380 actually skipped as they come 'after' the job you provided
74- -S selected points of scan only
75- in case of preparation of files, regenerate only those directories
76- with an incomplete set of input files, unless a fort.10.gz of non-zero
77- length or the JOB_NOT_YET_COMPLETED file are there;
78- in case of check, check the correct input is generated only in those
79- directories that will be submitted (see previous point)
80- in case of submission, submit those directories requiring actual submission
81- (see previous point)
82- NB:
83- - this option is NOT active in case of -c only!
84- - this option is NOT compatible with -i action!
81+ -S selected points of scan only - DEPRECATED!!!
8582 -v verbose (OFF by default)
8683
8784
@@ -1919,7 +1916,7 @@ lsubmit=false
19191916lstatus=false
19201917lfix=false
19211918lcleanzip=false
1922- lselected=false
1919+ lselected=true
19231920lmegazip=false
19241921loutform=false
19251922lbackcomp=true
@@ -1953,7 +1950,7 @@ additionalFilesOutMADFullPaths=""
19531950additionalFilesOutMADNames=" "
19541951
19551952# get options (heading ':' to disable the verbose error handling)
1956- while getopts " :aBcCd:fghilm :Mn:N:o:p:P:R:sStUvw" opt ; do
1953+ while getopts " :aBcCd:fFghilm :Mn:N:o:p:P:R:sStUvw" opt ; do
19571954 case $opt in
19581955 a)
19591956 # do everything
@@ -1983,6 +1980,10 @@ while getopts ":aBcCd:fghilm:Mn:N:o:p:P:R:sStUvw" opt ; do
19831980 # fix directories
19841981 lfix=true
19851982 ;;
1983+ F)
1984+ # run forcely, i.e. do not check if results are already there
1985+ lselected=false
1986+ ;;
19861987 g)
19871988 # generate simulation files
19881989 lgenerate=true
@@ -2002,6 +2003,8 @@ while getopts ":aBcCd:fghilm:Mn:N:o:p:P:R:sStUvw" opt ; do
20022003 lcheck=false
20032004 # submit
20042005 lsubmit=true
2006+ # lSelected not needed
2007+ lselected=false
20052008 ;;
20062009 l)
20072010 # use fort.3.local
@@ -2071,7 +2074,9 @@ while getopts ":aBcCd:fghilm:Mn:N:o:p:P:R:sStUvw" opt ; do
20712074 ;;
20722075 S)
20732076 # selected points of scan only
2074- lselected=true
2077+ how_to_use
2078+ echo " -S option is deprecated!"
2079+ exit 1
20752080 ;;
20762081 t)
20772082 # status
@@ -2136,10 +2141,6 @@ if ${lFinaliseHTCondor} ; then
21362141 optArgCurrPlatForm=" -p ${sixdeskplatformDefIncomplete} "
21372142 echo " -w action forces platform to ${sixdeskplatformDefIncomplete} "
21382143fi
2139- if ${lincomplete} && ${lselected} ; then
2140- echo " -S option and -i action are incompatible!"
2141- exit 1
2142- fi
21432144
21442145# ------------------------------------------------------------------------------
21452146# preparatory steps
0 commit comments