-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
55 lines (37 loc) · 1.06 KB
/
run.sh
File metadata and controls
55 lines (37 loc) · 1.06 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
#!/bin/bash
#!/usr/bin/env python
#Getting the date and time to create the
tmp_folder=$(date +'%Y_%m_%d_%H_%M_%S')
#echo $(date)
#echo $tmp_folder
# Creating the temporal file in the PROGRAM dir.
mkdir PROGRAM/$tmp_folder/
#mkdir OUTPUT/
# Copy the INPUT filles to tmp. folder
cp INPUT/* PROGRAM/$tmp_folder/
# Execute compiler to create or actualize programs
cd PROGRAM/
./compile.sh
#gprof created
#Copy the program scripts in the tmp. folder
cp *.py $tmp_folder/
#cp *.bin $tmp_folder/
cp r_* $tmp_folder/
# Running the programs in the tmp folder
cd $tmp_folder/
./r_main input.dat
nuitka --nofollow-imports binning.py
./binning.bin
#python3 binning.py
# After the program ends, create tar, delete folder and move to OUTPUT
cd ..
cd ..
pwd
mkdir OUTPUT/$tmp_folder/
mkdir OUTPUT/$tmp_folder/figures/
mkdir OUTPUT/$tmp_folder/data/
mv PROGRAM/$tmp_folder/*.png OUTPUT/$tmp_folder/figures/
mv PROGRAM/$tmp_folder/*.dat OUTPUT/$tmp_folder/data/
mv PROGRAM/$tmp_folder/* OUTPUT/$tmp_folder/
rm -r PROGRAM/$tmp_folder/
echo "Folder for this simulation ${tmp_folder}"