/[MITgcm]/MITgcm_contrib/jmc_script/add0upto3c
ViewVC logotype

Contents of /MITgcm_contrib/jmc_script/add0upto3c

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


Revision 1.1 - (show annotations) (download)
Sun Oct 12 14:46:35 2003 UTC (21 years, 9 months ago) by jmc
Branch: MAIN
Some basic scripts are gather here:
a) the restart test : "1+1=2"
b) PBS batch script that resubmit itself (loop).

1 #!/bin/csh
2 set xx = '000'$1
3 set yy = `echo $xx | sed 's/^...$/aaa/'`
4
5 while ( $yy != 'aaa' )
6 set xx = `echo $xx | sed 's/^0//'`
7 set yy = `echo $xx | sed 's/^...$/aaa/'`
8 # echo $xx $yy
9 end
10 echo $xx
11 exit

  ViewVC Help
Powered by ViewVC 1.1.22