/[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.2 - (show annotations) (download)
Sun Jun 27 07:17:28 2010 UTC (15 years, 1 month ago) by dimitri
Branch: MAIN
Changes since 1.1: +6 -1 lines
specifying 6-hour 3-D output

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 \mv STDOUT.0000 stdout.${newiter0}
23 \rm STD*

  ViewVC Help
Powered by ViewVC 1.1.22