Run WRF(ARW)

1 minute read

Published:

1. Run real.exe

i. export my working directory

export WKDIR=/home/chchoi/run_wrf/
export WRF=/home/chchoi/WRFV3
export WPS=/home/chchoi/WPS
cd $WRKDIR/wrf
ln -sf $WRF/run/*_DATA -t $WKDIR/wrf
ln -sf $WRF/run/*.TBL -t $WKDIR/wrf
ln -sf $WRF/run/tr* -t $WKDIR/wrf
ln -sf $WRF/run/*.txt -t $WKDIR/wrf
ln -sf $WRF/run/*.tbl -t $WKDIR/wrf
ln -sf $WRF/run/co2* -t $WKDIR/wrf
ln -sf $WRF/main/*.exe -t $WKDIR/wrf
ln -sf $WRF/run/*.formatted -t $WKDIR/wrf
ln -sf $WRF/run/ETAMPNEW_DATA.expanded_rain

cp $WRF/run/namelist.input $WKDIR/wrf
cp $WRF/run/namelist.input $WKDIR/wrf
cp namelist.input namelist.input.org

ln -sf $WRKDIR/wps/met_em.* -t $WKDIR/wrf

b. vim namelist.input

num_metgrid_levels = 32, 
num_metgrid_soil_levels = 4, 
num_land_cat = 24, 
sf_surface_physics = 2, 2, 2,
frames_per_outfile = 1000, 1000, 1000,

c . Run geogrid.exe

./real.exe

or

mpirun -np 4 real.exe

d. output

wrfbdy_d01
wrfinput_d01
wrfinput_d02

2. Run wrf.exe

a. for core dump:

i set unlimited ram

 ulimit -s unlimited

ii vim namelist.input

timestep= 6*$(how many km for dx and dy)

iii. reinstall wrf by vim configure.wrf

FCOPTIM = -O2 -fastsse -Mvect=noaltcode -Msmartalloc -Mprefetch=distance:8 -Mfprelaxed # -Minfo=all =Mneginfo=all
FCDEBUG = -g $(FCNOOPT) -C -Ktrap=fp -traceback

Ref: for more details, please go to Compile WRFV3 via mpif90

b. disable cuda

mpirun -np 8 --mca mpi_cuda_support 0 wrf.exe

c. Output:

wrfout_d01_2017-05-21_00:00:00
wrfout_d02_2017-05-21_00:00:00