/[lmdze]/trunk/Scripts/LMDZE_NQSII.ksh
ViewVC logotype

Contents of /trunk/Scripts/LMDZE_NQSII.ksh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Thu Feb 28 18:05:06 2008 UTC (16 years, 2 months ago) by guez
File MIME type: text/plain
File size: 1541 byte(s)
Cosmetic changes
1 # This is a script in KornShell with directives for NQSII.
2
3 # This script collects input files necessary for the program "gcm" and
4 # runs "gcm". Submit this script to NQSII on Brodie.
5
6 #PBS -S /bin/ksh
7 #PBS -N gcm_97
8 #PBS -o gcm_97_out
9 #PBS -j o
10 #PBS -l cputim_job=30:00
11 #PBS -l memsz_job=300MB
12
13 set -x
14 trap 'exit 1' ERR
15
16 cd ${TMPDIR:?}
17
18 # Specify directories:
19 REL_dir=$workdir/LMDZE/Results_etat0_lim
20 IGCM_dir=~
21 executable_dir=$workdir/LMDZE/Compil_prod
22
23 # Identifier for the set of parameters ("*.def" files and namelists):
24 igcm_id=igcm34
25
26 # Run number of "etat0_lim", for "limit.nc" and "coefoz_LMDZ.nc":
27 numb_cr=53
28
29 # Restart from the end of a previous "gcm" run?
30 restart=n
31
32 if [[ $restart = y ]]
33 then
34 RGCM_dir=~/Documents/Utilisation_LMDZ/Results_gcm
35
36 # Previous run number of "gcm" for "start.nc" and "startphy.nc":
37 prev_gcm=
38 fi
39
40 test -f $REL_dir/$numb_cr/limit.nc
41 test -f $REL_dir/$numb_cr/coefoz_LMDZ.nc
42 cp -p $REL_dir/$numb_cr/limit.nc $REL_dir/$numb_cr/coefoz_LMDZ.nc .
43
44 if [[ $restart != y ]]
45 then
46 # Start-up files come from "etat0_lim":
47 cp -p $REL_dir/$numb_cr/start*.nc .
48 else
49 cp -p $RGCM_dir/$prev_gcm/restart.nc start.nc
50 cp -p $RGCM_dir/$prev_gcm/restartphy.nc startphy.nc
51 fi
52
53 test -f $IGCM_dir/$igcm_id/run.def
54 cp -p $IGCM_dir/$igcm_id/*.def .
55
56 cp -p $executable_dir/gcm $IGCM_dir/$igcm_id/gcm_nml.txt .
57 ls -l
58 export F_PROGINF=YES
59 trap - ERR
60 gcm <gcm_nml.txt
61 ## >gcm_out.txt
62 ls -l
63 ##cp -p dyn*.nc hist*.nc restart* gcm_out.txt $workdir/LMDZE
64 cp -p dyn*.nc hist*.nc restart* $workdir/LMDZE

  ViewVC Help
Powered by ViewVC 1.1.21