-
Notifications
You must be signed in to change notification settings - Fork 0
/
cxs_min_scan.sh
executable file
·58 lines (43 loc) · 1.56 KB
/
cxs_min_scan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash -l
usage(){ cat << EOU
cxs_min_scan.sh
=================
This does single event runs with OPTICKS_MAX_BOUNCE varied
from from 0 to 31 with corresponding OPTICKS_START_INDEX
such that the actually separate runs are all written
into a common "run" folder without overwriting event folds.
The run_meta.txt is however overwritten, so used "meta"
command to copy that into the event folder. But thats in
the wrong place so would need special casing to use that
metadata.
How to create plots of launch time vs MAX_BOUNCE
-------------------------------------------------------
::
~/opticks/CSGOptiX/cxs_min_scan.sh
vi ~/opticks/notes/issues/OPTICKS_MAX_BOUNCE_scanning.rst
Workstation::
~/opticks/cxs_min_scan.sh ## using symbolic link
Laptop::
~/opticks/cxs_min.sh grab
PLOT=Substamp_ONE_maxb_scan PICK=A ~/opticks/sreport.sh
PLOT=Substamp_ONE_maxb_scan PICK=A ~/opticks/sreport.sh mpcap
PLOT=Substamp_ONE_maxb_scan PICK=A PUB=expensive_tail ~/opticks/sreport.sh mppub
EOU
}
SOURCE=$([ -L $BASH_SOURCE ] && readlink $BASH_SOURCE || echo $BASH_SOURCE)
SDIR=$(cd $(dirname $SOURCE) && pwd)
script=$SDIR/cxs_min.sh
export OPTICKS_SCANNER=$SOURCE
export OPTICKS_RUNNING_MODE=SRM_TORCH
export OPTICKS_NUM_EVENT=1
export OPTICKS_NUM_PHOTON=H1
ii=$(seq 0 31)
for i in $ii ; do
echo $BASH_SOURCE : i $i
export OPTICKS_MAX_BOUNCE=$i
export OPTICKS_START_INDEX=$i
export OPTICKS_SCAN_INDEX=A$(printf "%0.3d" $i)
$script run_meta
[ $? -ne 0 ] && echo $BASH_SOURCE : ERROR RUNNING SCRIPT $script && exit 1
done
exit 0