-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_lesion_simulations.sh
44 lines (25 loc) · 1.85 KB
/
run_lesion_simulations.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
#!/bin/bash
BUILD_TYPE=optimised_native
NUM_PROCS=1
TEST=TestFibroblastsLiteratePaper
cd ../..
scons cl=1 -j12 b=GccOptNative projects/MouseLesion/test/${TEST}.hpp
LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
cd projects/MouseLesion
# Run main control
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 1 --scar-membrane-area-scaling 1 --use-neutral-cells false --use-fibroblasts false 2>&1 &
declare -a arr=("--use-neutral-cells" "--use-fibroblasts")
## now loop through the above array
for i in "${arr[@]}"
do
# Run 'controls'
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 1 --scar-membrane-area-scaling 1 ${i} true 2>&1 &
# Immediately after injury
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 0.001 --scar-membrane-area-scaling 1 ${i} true 2>&1 &
# Results for 'capacitance' study
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 0.1 --scar-membrane-area-scaling 1 ${i} true 2>&1 &
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 0.1 --scar-membrane-area-scaling 0.1 ${i} true 2>&1 &
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 0.1 --scar-membrane-area-scaling 0.01 ${i} true 2>&1 &
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 0.1 --scar-membrane-area-scaling 0.001 ${i} true 2>&1 &
mpirun -np ${NUM_PROCS} ./build/${BUILD_TYPE}/${TEST}Runner --boundary-conduction-scaling 1 --scar-conduction-scaling 0.1 --scar-membrane-area-scaling 0.0001 ${i} true 2>&1 &
done