-
Notifications
You must be signed in to change notification settings - Fork 1
/
parallel.sh
executable file
·83 lines (73 loc) · 3.66 KB
/
parallel.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
set -x
set -e
#source ~/venv-opt/bin/activate
source ~/venv/bin/activate
which python3
export PATH=/home/gmap/mrpm/cossevine/build_Parallel:$PATH
#export PATH=/home/gmap/mrpm/marguina/fxtran-acdc/bin:$PATH
p=$(pwd)
echo $p
function resolve ()
{
f=$1
for view in $(cat .gmkview)
do
g="src/$view/$f"
if [ -f $g ]
then
# echo $g
echo "src/$view/"
break
fi
done
}
#for f in \
# arpifs/phys_dmn/apl_arpege_init.F90 \
# arpifs/phys_dmn/apl_arpege_init_surfex.F90 \
# arpifs/phys_dmn/apl_arpege_oceanic_fluxes.F90 \
# arpifs/phys_dmn/apl_wind_gust.F90 \
# arpifs/phys_dmn/mf_phys_mocon.F90 \
# arpifs/phys_dmn/apl_arpege_shallow_convection_and_turbulence.F90 \
# arpifs/phys_dmn/apl_arpege_albedo_computation.F90 \
# arpifs/phys_dmn/apl_arpege_aerosols_for_radiation.F90 \
# arpifs/phys_dmn/apl_arpege_cloudiness.F90 \
# arpifs/phys_dmn/apl_arpege_radiation.F90 \
# arpifs/phys_dmn/apl_arpege_soil_hydro.F90 \
# arpifs/phys_dmn/apl_arpege_deep_convection.F90 \
# arpifs/phys_dmn/apl_arpege_surface.F90 \
# arpifs/phys_dmn/apl_arpege_precipitation.F90 \
# arpifs/phys_dmn/apl_arpege_hydro_budget.F90 \
# arpifs/phys_dmn/apl_arpege_dprecips.F90 \
# arpifs/phys_dmn/apl_arpege_atmosphere_update.F90 \
# arpifs/adiab/cputqy_aplpar_expl.F90 \
# arpifs/adiab/acctnd0.F90 \
# arpifs/adiab/cputqy0.F90 \
# arpifs/phys_dmn/mf_phys_transfer.F90 \
# arpifs/phys_dmn/apl_arpege_surface_update.F90 \
# arpifs/phys_dmn/apl_arpege.F90 \
# arpifs/phys_dmn/mf_phys_prep.F90 \
# arpifs/phys_dmn/mf_phys_init.F90 \
# arpifs/phys_dmn/mf_phys.F90 \
# arpifs/phys_dmn/mf_phys_save_phsurf_part2.F90 \
# arpifs/phys_dmn/mf_phys_save_phsurf_part1.F90 \
# arpifs/phys_dmn/mf_phys_fpl_part2.F90 \
# arpifs/phys_dmn/mf_phys_fpl_part1.F90 \
# arpifs/phys_dmn/acvppkf.F90
#do
#done
f=arpifs/phys_dmn/apl_arpege.F90
echo "==> $f <=="
# pointerParallel.pl --types-fieldapi-dir types-fieldapi --post-parallel synchost --only-if-newer --version src/local/$f
dir=$(dirname $f)
echo "DIR = $dir"
echo "RESOLVE = $(resolve $f)"
g=$(resolve $f)
#python3 -m cProfile -o out.txt -s cumulative ~/build_Parallel/to_parallel.py --pathpack $p --pathview $g --pathfile $f
python3 ~/build_Parallel/to_parallel.py --pathpack $p --pathview $g --pathfile $f
#python3 ~/build_Parallel/to_parallel.py --pathpack $p --pathview $g --pathfile $f
#python3 ~/build_Parallel/to_parallel.py --pathpack $p --pathview $g --pathfile $f
#python3 -m pdb -c continue ~/build_Parallel/to_parallel.py --pathpack $p --pathview $g --pathfile $f
#to_parallel.py$* src/local/$dir $(resolve $f)
#pointerParallel.pl $* --use-acpy --types-fieldapi-dir types-fieldapi --post-parallel synchost,nullify --version --dir src/local/$dir $(resolve $f)
#grep _parallel src/local/arpifs/phys_dmn/apl_arpege_parallel.F90