Last change
on this file since 2757 was
17,
checked in by aslmd, 14 years ago
|
spiga:mineur
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #! /bin/bash |
---|
2 | |
---|
3 | \rm simtime 2> /dev/null |
---|
4 | |
---|
5 | mkdir results |
---|
6 | |
---|
7 | if [[ -f extract_turb ]] |
---|
8 | then |
---|
9 | |
---|
10 | #./extract_turb |
---|
11 | mv *.nc results/ |
---|
12 | |
---|
13 | fi |
---|
14 | |
---|
15 | if [[ -d plot ]] |
---|
16 | then |
---|
17 | |
---|
18 | mv plot results/ |
---|
19 | mv getcdf.pro results/ |
---|
20 | mv turbulence.pro results/ |
---|
21 | \rm turbulence.dat 2> /dev/null |
---|
22 | |
---|
23 | fi |
---|
24 | |
---|
25 | if [[ -f rsl.error.0000 ]] |
---|
26 | then |
---|
27 | |
---|
28 | timesec=$(more rsl.error.0000 | grep elapsed | grep 'Timing for main' | awk '{s+=$9} END{print s}') |
---|
29 | touch simtime |
---|
30 | echo ${timesec} seconds |
---|
31 | echo ${timesec} seconds >> simtime |
---|
32 | |
---|
33 | head -10000 rsl.out.0000 > red_rsl.out.0000 |
---|
34 | head -4000 rsl.error.0000 > red_rsl.error.0000 |
---|
35 | mv red_rsl.* results/ |
---|
36 | mv ideal_rsl.out.0000 results/ |
---|
37 | mv simtime results/ |
---|
38 | |
---|
39 | else |
---|
40 | |
---|
41 | timesec=$(more log_wrf | grep elapsed | grep 'Timing for main' | awk '{s+=$9} END{print s}') |
---|
42 | touch simtime |
---|
43 | echo ${timesec} seconds |
---|
44 | echo ${timesec} seconds >> simtime |
---|
45 | |
---|
46 | head -10000 log_wrf > red_log_wrf |
---|
47 | mv red_log_wrf results/ |
---|
48 | mv simtime results/ |
---|
49 | mv met_em/log_real results/ |
---|
50 | |
---|
51 | fi |
---|
52 | |
---|
53 | tar czvf def.tar.gz namelist.input *.def input_* launch |
---|
54 | cp def.tar.gz results/ |
---|
55 | |
---|
56 | mv wrfout* results/ |
---|
57 | mv namelist.output results/ |
---|
58 | ls -lh results |
---|
59 | du -bh results |
---|
60 | echo '*****************************************************' |
---|
61 | echo '*** BEWARE ! *** output files were moved in the folder named results !!!' |
---|
62 | echo 'what you may keep: results folder and def.tar.gz file' |
---|
63 | echo '*****************************************************' |
---|
Note: See
TracBrowser
for help on using the repository browser.