source: trunk/WRF.COMMON/WRFV3/modif_mars/les_save_this_simu @ 2757

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
5mkdir results
6
7if [[ -f extract_turb ]]
8then
9
10  #./extract_turb
11  mv *.nc results/
12
13fi
14
15if [[ -d plot ]]
16then
17
18  mv plot results/
19  mv getcdf.pro results/
20  mv turbulence.pro results/
21  \rm turbulence.dat 2> /dev/null   
22
23fi
24
25if [[ -f rsl.error.0000 ]]
26then
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
39else
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
51fi
52
53tar czvf def.tar.gz namelist.input *.def input_* launch
54cp def.tar.gz results/
55
56mv wrfout* results/
57mv namelist.output results/
58ls -lh results
59du -bh results
60echo '*****************************************************'
61echo '*** BEWARE ! *** output files were moved in the folder named results !!!'
62echo 'what you may keep: results folder and def.tar.gz file'
63echo '*****************************************************'
Note: See TracBrowser for help on using the repository browser.