-
Notifications
You must be signed in to change notification settings - Fork 12
/
qsub_this_to_run_all_compilers.pbs.csh
48 lines (43 loc) · 1.23 KB
/
qsub_this_to_run_all_compilers.pbs.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/csh -f
#
# PBS batch script
#
# Job name
#PBS -N WTF_v04.08
# queue: share, regular, economy
#PBS -q share
# Combine error and output files
#PBS -j oe
# output filename
#PBS -o regtest.out
# error filename
#PBS -e regtest.out
# wallclock time hh:mm:ss
#PBS -l walltime=06:00:00
# Project charge code
#PBS -A P64000400
# Claim 18 cores for this script (individual jobs created by this script can use way more)
#PBS -l select=1:ncpus=18:mem=60GB
# Send email on abort or end of main job
#PBS -m ae
if ( ! -e Data ) then
echo "ERROR ERROR ERROR"
echo ""
echo "'Data' directory not found"
echo "If on Cheyenne, link /glade/p/wrf/Data into your WTF directory"
echo ""
echo "Otherwise, it can be downloaded from http://www2.mmm.ucar.edu/wrf/tmp/"
exit 1
endif
if ( ! -e Data/v04.08 ) then
echo "ERROR ERROR ERROR"
echo ""
echo "'Data' directory is not the correct version (v04.08)"
echo "If on Cheyenne, link /glade/p/wrf/Data into your WTF directory"
echo ""
echo "Otherwise, it can be downloaded from http://www2.mmm.ucar.edu/wrf/tmp/data_v04.08.tar"
exit 2
endif
setenv TMPDIR /glade/scratch/$USER/tmp # CISL-recommended hack for Cheyenne builds
scripts/run_all_for_qsub1.csh
scripts/run_all_for_qsub2.csh