/[MITgcm]/MITgcm_contrib/quarter_degree_global/input/modpickup_16
ViewVC logotype

Contents of /MITgcm_contrib/quarter_degree_global/input/modpickup_16

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Jun 28 19:50:21 2010 UTC (15 years, 1 month ago) by zhc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -0 lines
keep stdout

1 #! /bin/csh
2 set filesize=60763668480
3 set last_pickup=`ls -lt pickup.ckpt*.data | awk '$5~/'${filesize}'/{print $NF}'|head -1 `
4 if (-e ${last_pickup}) then
5 set last_meta=`echo $last_pickup | sed 's/data/meta/'`
6 set timestep=`awk '$1~/timeStepNumber/{printf("%010d",$4)}' $last_meta`
7 \ln -sf ${last_pickup} pickup.${timestep}.data
8 set last_pickupmeta=`echo $last_pickup|awk '{split($0,a,".");print a[1]"."a[2]".meta"}'`
9 \ln -sf ${last_pickupmeta} pickup.${timestep}.meta
10
11 set newiter0=`expr $timestep \* 1`
12 ex - data >> /dev/null <<EOF
13 /niter0=
14 c
15 niter0=${newiter0},
16 .
17 w
18 q
19 EOF
20 endif
21
22 if (-e stdout.${newiter0}) then
23 set sf=`ls -l stdout.${newiter0}*|wc -l`
24 \mv STDOUT.0000 stdout.${newiter0}_${sf}
25 else
26 \mv STDOUT.0000 stdout.${newiter0}
27 endif
28
29 \rm STD*

  ViewVC Help
Powered by ViewVC 1.1.22