kuang@centos8 /data/WRF2019
$ cat dowrf.cs
yyyy=2019
y=$(date-ud"${yyyy}-01-01" +%Y)exe=/opt/bld/WRF4.3/main/wrf.exe
p=$PWDfor mt in{01..12};do
ym=${y}${mt}if[$ym=='201901'];then
for r in{1..4};do
cd$p/$ym/run$r
/opt/mpich/bin/mpirun -np 30 $exedone
fi
for r in{5..12};do
cd$p/$ym/run$r
/opt/mpich/bin/mpirun -np 30 $exedone
done
Reference
Mesoscale and Microscale Meteorology Laboratory, NCAR, Weather Research & Forecasting Model ARW Version 4 Modeling System User’s Guide, pdfcoffee, 2019,1.