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

Contents of /MITgcm_contrib/quarter_degree_global/input/modpickup

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


Revision 1.1 - (show annotations) (download)
Tue Nov 30 01:59:56 2004 UTC (20 years, 8 months ago) by dimitri
Branch: MAIN
MITgcm_contrib/quarter_degree_global/*

1 #! /bin/csh
2 set N = $1
3 set filesize=7515849600
4 set last_pickup=`ls -lt pickup.ckpt*.data | awk '$5~/'${filesize}'/{print $NF}'|head -1 `
5 if (-e ${last_pickup}) then
6 set last_meta=`echo $last_pickup | sed 's/data/meta/'`
7 set timestep=`awk '$1~/timeStepNumber/{printf("%010d",$4)}' $last_meta`
8 \ln -sf ${last_pickup} pickup.${timestep}.data
9 endif
10
11 set newiter0=`expr $timestep \* 1`
12 ex - data_hr$N >> /dev/null <<EOF
13 /niter0=
14 c
15 niter0=${newiter0},
16 .
17 w
18 q
19 EOF
20 endif

  ViewVC Help
Powered by ViewVC 1.1.22