# Linux PC with Portland Group 64-bit compiler (PGF90)#FFLAGS = -O2 -Mextend -Kieee#FC = pgf90#EXC = tuv# Linux PC with Intel compiler (IFORT)
FFLAGS =-O2-mieee-fp-extend_source
FC = ifort
EXC = tuv
# Linux PC with GNU compiler (GFORTRAN)#FFLAGS = -O2 -frecord-marker=4 -ffixed-line-length-0#FC = gfortran#EXC = tuv
(unresp)
kuang@master /nas1/camxruns/2019/inputs/toms
$ tail-n11 m3mapd1.cs
# doing the tuv jobcd /home/camxruns/2016_v7/inputs/tuv/tuv4.8.camx7.00
for Y in 16;do
for i in{01..12};do
cb6.job $Y${i}01 1
done
done
腳本內容
引數為
年月日(yymmdd format)
層數N=1,2,3,4
#!/bin/csh -fset MECH = CB6 # [CB05|CB6|SAPRC07]set SCHEME = 2 # 1 = pseudo spherical 2-stream# 2 = discrete ordinates (recommended)set yymmdd =$1# YYMMDD formatset DOM =$2# 1,2,3,4formatset RUN_TUVCOMPR ='NO'# Run TUV comparisonif($SCHEME== 1)set SCM ='ps2str'if($SCHEME== 2)set SCM ='do'set TUVINP = tuv.${SCM}_${MECH}.inp
set TUVOUT = tuv.${SCM}_${MECH}.diag
set OUTFILE = tuv.${SCM}_${MECH}.$yymmdd.d$DOMif($MECH=='CB6')then
set RXNUM = 23
set RXLST ='94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 114, 115, 116, 111, 112, 113'
endif
if($MECH=='CB05')then
set RXNUM = 19
set RXLST ='77, 84, 83, 79, 78, 87, 66, 88, 89, 90, 91, 63, 68, 67, 62, 92, 61, 93, 82'
endif
if($MECH=='SAPRC07')then
set RXNUM = 29
set RXLST ='168 169 170 172 173 161 158 159 155 175 157 156 149 148 143 165 152 154 153 166 146 147 145 164 167 163 160 144 174'
endif
cat<<EOF >! ./tuv.inp
program version |TUV4.8CAMx7.00
output file name |./$OUTFILE
o3map file name |../../toms/o3map.20$1.d$DOM
# of vert levels | 11
levels, km agl | 0. 0.15 0.35 0.60 1.00 2.00 3.00 4.00 6.00 8.00 10.0
date (YYMMDD) | $yymmdd
rad transfer scheme| $SCHEME
# of phot reactions| $RXNUM
TUV reaction #s | $RXLSTEOF
/cluster/src/CAMx/tuv/tuv4.8.camx7.00/src/tuv
mv-f tuv.inp $TUVINPmv-f tuv_diag.out $TUVOUT# Do a quick comparison of CAMx photolysis rate files# and report the ratios in a flat ASCII format# Note: Number of reactions in the two files have to be the same.if($RUN_TUVCOMPR=='YES')then
/cluster/src/CAMx/tuv/tuv4.8.camx7.00/tuvcompr/tuvcompr <<EOF
rates file 1 |./tuv.do_${MECH}.$yymmdd.d$DOM
rates file 2 |./tuv.ps2str_${MECH}.$yymmdd
summary output file|./compare.${MECH}_do_ps2str
number of reactions| $RXNUM
number of altitudes| 15
EOF
endif