forked from ahrenberg/split_nlogo_experiment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nlogo.pbs
executable file
·40 lines (30 loc) · 987 Bytes
/
nlogo.pbs
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
#!/bin/bash
#PBS -N RUN
#PBS -l mem=2048mb
#PBS -l nodes=1ppn=16
#PBS -l cput=1:10:00
#PBS -l walltime=1:10:00
#Edit these to set up your run
BASEDIR=/my/base/dir
#The directory you plan to run the parameter study in
RUNDIR=$BASEDIR/param_study
#The path to the java executable
JAVA=$BASEDIR/jre1.8.0_131/bin/java
#The path to the NetLogo.jar file
LOGO=$BASEDIR/netlogo-5.2.1/NetLogo.jar
#The filename of the model file (assuming it is in your RUNDIR)
MODEL=MyModelWithBehaviorSpaces.nlogo
#The mpirun command provided by your cluster admin
MPIRUN=mpirun
#The path to the mpirun_nlogo.py file
MPIRUN_NLOGO_PATH=$HOMEDIR/mpirun_nlogo/mpirun_nlogo.py
#How many cores we are running with
NUMCORES=16
#Remember to comment out the profiler extension in the .nlogo file
#Shouldn't need to edit below here
#module load openmpi
#module load python/2.7.9
uptime
cd $RUNDIR
$MPIRUN -np $NUMCORES python $MPIRUN_NLOGO_PATH --all_experiments --java $JAVA --nlogo_path $LOGO $MODEL
uptime