1 |
guez |
3 |
# This is a script in Bash. |
2 |
|
|
|
3 |
|
|
trap 'exit 1' ERR |
4 |
|
|
|
5 |
|
|
##set -x |
6 |
|
|
|
7 |
|
|
cd ~/Documents/Informatique_fonctionnement/Programs/LMDZ4_program/Pre-processed |
8 |
|
|
|
9 |
|
|
for director in bibio dyn3d filtrez phylmd |
10 |
|
|
do |
11 |
|
|
cd $director |
12 |
|
|
rm -f * |
13 |
|
|
cd .. |
14 |
|
|
done |
15 |
|
|
|
16 |
|
|
cd ~/Documents/Informatique_fonctionnement/Programs/LMDZ4_program/libf |
17 |
|
|
|
18 |
|
|
for director in bibio dyn3d filtrez phylmd |
19 |
|
|
do |
20 |
|
|
cd $director |
21 |
|
|
for filename in *.F?(90) |
22 |
|
|
do |
23 |
|
|
echo $filename |
24 |
|
|
suffix90=${filename##*.F} |
25 |
|
|
base=${filename%.*} |
26 |
|
|
g95 -E -DCPP_PHYS -DCPP_IOIPSL -I../grid -I../dyn3d -I../phylmd \ |
27 |
|
|
-I/home/guez/netcdf-3.6.1/include $filename \ |
28 |
|
|
> ../../Pre-processed/$director/$base.f$suffix90 |
29 |
|
|
done |
30 |
|
|
cd .. |
31 |
|
|
done |