forked from fmckenna/Workflowf1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestBuildingWorkflow.sh
executable file
·64 lines (53 loc) · 1.11 KB
/
testBuildingWorkflow.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
if [ $# -eq 0 ]
then
building=0;
else
building=$1
fi
make
cd createBIM
rm *.json
if [ $building -eq 0 ]
then
./createBIM
else
./createBIM $1 $1
cp $1-BIM.json exampleBIM.json
fi
cd ..
cd createEVENT
rm example*.json
cp ../createBIM/example*.json ./
./createEVENT exampleBIM.json exampleEVENT.json
cd ..
cd createSAM
rm example*.json
cp ../createEVENT/example*.json ./
./createSAM exampleBIM.json exampleEVENT.json exampleSAM.json
cd ..
cd createEDP
rm example*.json
cp ../createSAM/example*.json ./
./createEDP exampleBIM.json exampleSAM.json exampleEVENT.json exampleEDP.json
cd ..
cd performSIMULATION
rm example*.json
rm *.out
cp ../createEDP/example*.json ./
./performSimulation.sh exampleBIM.json exampleSAM.json exampleEVENT.json exampleEDP.json
rm *.out
cd ..
cd createDL
rm example*.json
cp ../performSIMULATION/exampleBIM.json ./
cp ../performSIMULATION/exampleEDP.json ./
./createLOSS exampleBIM.json exampleEDP.json exampleDL.json
cat exampleDL.json
cd ..
cd finalProcessing
rm *.json
cp ../createDL/exampleDL.json ./$1-DL.json
./readDLs $1 $1 test
cat test
rm test *.json