-
Notifications
You must be signed in to change notification settings - Fork 0
/
evaluate_autodock_aurora.sh
executable file
·48 lines (40 loc) · 1.38 KB
/
evaluate_autodock_aurora.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
# Script that runs both local search methods.
# Parametrization focused on population size, so that
# a comparison against GPUs/CPUs can be made
#!/bin/bash
source list_inputs.sh
source evaluate.sh
RES_AURORA_DIR=results_aurora
AURORA_VH_BIN=./autodock-aurora
AURORA_VE_BIN=./bin/libkernel_ga.so
# Bash functions
function verify_folder_results_exist_in_local_folder() {
if [ ! -d ${RES_AURORA_DIR} ]; then
mkdir ${RES_AURORA_DIR}
else
echo "${info}: Be cautious. Folder \"${RES_AURORA_DIR}\" for storing results already exists!"
fi
}
function verify_binaries_exist_in_local_folder() {
echo " "
echo "${info}: Verifying that AutoDock-Aurora binaries are present in current folder."
echo " "
if [ -f "${AURORA_VH_BIN}" ]; then
echo "${info}: \"${AURORA_VH_BIN}\" exists."
else
echo "${info}: \"${AURORA_VH_BIN}\" does not exist. Make sure binary is copied over first!"
echo "${info}: Terminated."
exit 9999 # Die with error code 9999
fi
if [ -f "${AURORA_VE_BIN}" ]; then
echo "${info}: \"${AURORA_VE_BIN}\" exists."
else
echo "${info}: \"${AURORA_VE_BIN}\" does not exist. Make sure binary is copied over first!"
echo "${info}: Terminated."
exit 9999 # Die with error code 9999
fi
}
# Main execution
verify_folder_results_exist_in_local_folder
verify_binaries_exist_in_local_folder
evaluate ${AURORA_VH_BIN} ${RES_AURORA_DIR}