-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathrun_nbody.sh
More file actions
executable file
·67 lines (55 loc) · 2.08 KB
/
Copy pathrun_nbody.sh
File metadata and controls
executable file
·67 lines (55 loc) · 2.08 KB
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
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
run=true
run_compare=false
compare_only=false
get_flag_list=false
cd "$(dirname "$0")"
PathToMilkyWayAtHomeClientDirectory="$(pwd)"
echo "Path to milkywayathome_client directory: $PathToMilkyWayAtHomeClientDirectory"
cd build/bin
#Note that the server rounds all parameters to 6 significant figures before sending them to the client
#So if you want to test the exact same parameters as the server, round to 6
if $run
then
./milkyway_nbody \
-f $PathToMilkyWayAtHomeClientDirectory/nbody/sample_workunits/for_developers.lua \
-o $PathToMilkyWayAtHomeClientDirectory/output/output.out \
-z $PathToMilkyWayAtHomeClientDirectory/output/output.hist \
-n 8 -w 1 -P -e 54231651 \
-i 4.0 1.0 0.2 0.2 12.0 0.2 \
fi
if $run_compare
then
./milkyway_nbody \
-f $PathToMilkyWayAtHomeClientDirectory/nbody/sample_workunits/for_developers.lua \
-o $PathToMilkyWayAtHomeClientDirectory/output/output.out \
-z $PathToMilkyWayAtHomeClientDirectory/output/output.hist \
-h $PathToMilkyWayAtHomeClientDirectory/input/input.hist \
-n 8 -w 1 -P -e 54231651 \
-p 4.0 1.0 0.2 0.2 12.0 0.2 \
fi
#SMU = 222,288.47 SOLAR MASSES
#OPTIONS:
#-s -> The histogram to compare. Will always compare using emd and cost component
#ADD ADDITIONAL FLAGS TO INCLUDE OTHER COMPARISONS
#-S -> Include beta dispersion in the comparison
#-V -> Include velocity dispersion in the comparison
#-B -> Include beta average in the comparison
#-Q -> Include line of sight velocity average in the comparison
#-D -> Include distance average in the comparison
#-U -> Include proper motion average in the comparison
#-L -> Include momentum in the comparison
#Note that average beta bins with be read in with the histogram given with -h,
#while EMDRange will prioritze the range given in the histogram given with -s
if $compare_only
then
./milkyway_nbody \
-h $PathToMilkyWayAtHomeClientDirectory/input/input.hist \
-s $PathToMilkyWayAtHomeClientDirectory/output/output.hist \
fi
# if you run:
if $get_flag_list
then
./milkyway_nbody --help
# it will show you what all the flags mean
fi