-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.2 KB
/
Makefile
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
#
# adjust this according to your configuration
#
NL_VERSION=6.3.0
# example generator
GENEX_CLASS = GenerateExample
GENCF_CLASS = GenerateConfigurations
# calculation of mean living cells
CALCMEAN_CLASS = CalculateMeanLiving
CALCMEAN_FILE = living_data_250steps_200runs.csv
# NetLog location
CLASS_PATH = ${HOME}/Local/NetLogo/${NL_VERSION}/lib/app/netlogo-${NL_VERSION}.jar
build:
javac -cp ${CLASS_PATH} ${GENEX_CLASS}.java
javac -cp ${CLASS_PATH} ${GENCF_CLASS}.java
javac -cp ${CLASS_PATH} ${CALCMEAN_CLASS}.java
realizations:
ln -sf run.sh random_realizations.sh
ln -sf run.sh deterministic_realizations.sh
bash random_realizations.sh
bash deterministic_realizations.sh
genex:
parallel java -cp .:${CLASS_PATH} ${GENEX_CLASS} 64 50 {1} {2} 2 {3} {4} ::: true false ::: true false ::: 0.0 0.25 0.5 0.75 1.0 ::: `seq 4 8`
gencf:
parallel java -cp .:${CLASS_PATH} ${GENCF_CLASS} 32 50 {1} {2} 2 {3} {4} ::: true ::: true false ::: 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 ::: `seq 4 9`
calcmean:
cp living_data.csv.tpl ${CALCMEAN_FILE}
parallel java -cp .:${CLASS_PATH} ${CALCMEAN_CLASS} 64 50 {1} {2} 2 {3} {4} >> ${CALCMEAN_FILE} ::: true false ::: true false ::: `seq 0 0.05 1` ::: `seq 4 9`