-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunNGEN.sh
62 lines (41 loc) · 3.14 KB
/
RunNGEN.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
#!/bin/bash
# give name to include in log file
run_name="1_PET_Topmodel"
source $PWD/ngen/venv/bin/activate
which_python=$(which python)
echo $which_python
# get start time
start_time=$(date +%s)
echo "start_time: $start_time"
##############
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_cfe_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_cfe_calibNC_tested.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_cfe_calibNC_DELETE.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_pet_cfe_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_pet_cfe_X_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_testNels.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_cfe_calibNC_Modtested.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_pet_cfe_calibNC.json
##### Run in parallel
#create parallel partition
ngen/cmake_build/partitionGenerator spatial/catchment_data.geojson spatial/nexus_data.geojson partition_config.json 1 '' ''
mpirun -n 1 ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_Topmodel_calibNC.json partition_config.json
####
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_Topmodel_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_pet_Topmodel_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_pet_Topmodel_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_Topmodel.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_Topmodel_calibNC.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_Topmodel_calibNCTEST.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_Topmodel_calibNC_NOtroute.json
# ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_cfe_calibNC_NOtroute.json
# valgrind --leak-check=yes ngen/cmake_build/ngen spatial/catchment_data.geojson "all" spatial/nexus_data.geojson "all" Realization_noahowp_cfe_calibNC.json > valgrind_output.txt 2>&1
#############
# get end time
end_time=$(date +%s)
echo "end_time: $end_time"
total_time=$(($end_time-$start_time))
echo "Run: $run_name" >> "runs.log"
echo "start time: $start_time" >> "runs.log"
echo "end time: $end_time" >> "runs.log"
printf "run time: $total_time\n\n" >> "runs.log"