source: trunk/MESOSCALE/LMD_MM_MARS/SIMU/RUN/save_this_simu @ 316

Last change on this file since 316 was 274, checked in by aslmd, 13 years ago

MESOSCALE: bug fixes in runmeso (thx AC). added bench info for LES on GNOME.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#! /bin/bash
2
3\rm simtime 2> /dev/null
4
5mkdir results
6
7if [[ -f rsl.error.0000 ]]
8then
9
10  timesec=$(more rsl.error.0000 | grep elapsed | grep 'Timing for main' | awk '{s+=$9} END{print s}')
11  touch simtime
12  echo ${timesec} seconds
13  echo ${timesec} seconds >> simtime
14
15  head -10000 rsl.out.0000 > red_rsl.out.0000
16  head -4000 rsl.error.0000 > red_rsl.error.0000
17  cp met_em/rsl.out.0000 real_rsl.out.0000
18  mv red_rsl.* results/
19  mv real_rsl.out.0000 results/
20  mv simtime results/
21
22else
23
24  timesec=$(more log_wrf | grep elapsed | grep 'Timing for main' | awk '{s+=$9} END{print s}')
25  touch simtime
26  echo ${timesec} seconds
27  echo ${timesec} seconds >> simtime
28
29  head -10000 log_wrf > red_log_wrf
30  mv red_log_wrf results/
31  mv simtime results/ 
32  mv met_em/log_real results/
33
34fi
35
36tar czvf def.tar.gz namelist.input namelist.wps callphys*.def makemeso* launch*
37cp def.tar.gz results/
38
39#mv *.def results/
40#mv results/callphys*def ./
41
42mv wrfout* results/
43ls -lh results
44du -bh results
45echo '*****************************************************'
46echo '*** BEWARE ! *** output files were moved in the folder named results !!!'
47echo 'what you may keep: results folder and def.tar.gz file'
48echo '*****************************************************'
Note: See TracBrowser for help on using the repository browser.