https://www.mmm.ucar.edu/weather-research-and-forecasting-model
WRF WRF 3.8.1 je preveden s Intel 2019 i OpenMP 3.0, a WRF 4.3 s Intel 2019 i OpenMP 4.1.
Dostupne verzije:
Verzija | Modul |
---|
3.8.1 | WRF/3.8.1-openmpi-intel |
Korištenje
Code Block |
---|
|
#!/bin/sh
#$ -N WRF
#$ -pe p28*full 28
#$ -cwd
cd /home/user/input_dir
module load WRF/3.8.1-openmpi-intel
mpirun -np $NSLOTS $FLAGS wrf.exe |
Instalacija
Priprema potrebnih ovisnosti
Code Block |
---|
mkdir dependencies
cd dependencies/ |
hdf5
Code Block |
---|
wget https://support.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.10.5.tar.gz
export CC=mpicc
export CXX=mpic++
export FC=mpif90
export F90=mpif90
tar xzvf hdf5-1.10.5.tar.gz
cd hdf5-1.10.5
./configure --prefix=/apps/WRF/dependencies/ --enable-parallel --enable-shared --enable-fortran
make -j 8 install |
parallel netcdf
Code Block |
---|
wget http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/pnetcdf-1.12.0.tar.gz
export CC=mpicc
export CXX=mpicxx
export FC=mpif90
export F77=mpif90
export F90=mpif90
export OMPI_MPICC=icc
export OMPI_MPICXX=icpc
export OMPI_MPIFC=ifort
export OMPI_MPIF77=ifort
export OMPI_MPIF90=ifort
export CFLAGS="-g -O2 -fPIC"
export CXXFLAGS="-g -O2 -fPIC"
export FFLAGS="-g -fPIC"
export FCFLAGS="-g -fPIC"
export FLDFLAGS="-fPIC"
export F90LDFLAGS="-fPIC"
export LDFLAGS="-fPIC"
tar xzvf pnetcdf-1.12.0.tar.gz
cd pnetcdf-1.12.0
./configure --prefix=/apps/WRF/dependencies/ --enable-fortran --enable-large-file-test
make -j 8 install |
netcdf-c
Code Block |
---|
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.2.tar.gz
HDF5=/apps/WRF/dependencies
PNET=/apps/WRF/dependencies/export
CPPFLAGS="-I$HDF5/include -I$PNET/include"
export CFLAGS="-I$HDF5/include -I$PNET/include"
export CXXFLAGS="-I$HDF5/include -I$PNET/include"
export FCFLAGS="-I$HDF5/include -I$PNET/include"
export FFLAGS="-I$HDF5/include -I$PNET/include"
export LDFLAGS="-I$HDF5/include -I$PNET/include -L$PNET/lib -L$HDF5/lib"
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
tar xzvf netcdf-c-4.7.2.tar.gz
cd netcdf-c-4.7.2
./configure --prefix=/apps/WRF/dependencies/ --disable-static --enable-shared --with-pic --enable-parallel-tests -enable-pnetcdf --enable-largefile
make
make install |
netcdf-fortran
Code Block |
---|
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.5.2.tar.gz
NCDIR=/apps/WRF/dependencies
export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LIBRARY_PATH}
export CPPFLAGS="-I$HDF5/include -I$NCDIR/include"
export CFLAGS="-I$HDF5/include -I$NCDIR/include"
export CXXFLAGS="-I$HDF5/include -I$NCDIR/include"
export FCFLAGS="-I$HDF5/include -I$NCDIR/include"
export FFLAGS="-I$HDF5/include -I$NCDIR/include"
export LDFLAGS="-I$HDF5/include -I$NCDIR/include -L$NCDIR/lib"
tar xzvf netcdf-fortran-4.5.2.tar.gz
cd netcdf-fortran-4.5.2
./configure --prefix=$NCDIR --disable-static --enable-shared --with-pic --enable-parallel-tests --enable-large-file-tests --enable-largefile
make
make install |
Instalacija WRF-a
Korištenje WRF 4.3
Za pokretanje WRF modela potrebani su ulazni podaci globalnog modela (GFS, ECMWF), npr. https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/
Code Block |
---|
mkdir -p ~/WRF_RUN/DATA
cd ~/WRF_RUN
cp /apps/WRF/4.3/DATA/* ./DATA |
Kopiranje svi potrebnih ulaznih podataka u radni direktorij:
Code Block |
---|
mkdir geogrid
mkdir metgrid
cp /apps/WRF/4.3/WPS/geogrid/GEOGRID.TBL geogrid/
cp /apps/WRF/4.3/WPS/metgrid/METGRID.TBL metgrid/
cp /apps/WRF/4.3/example/namelist.wps .
cp /apps/WRF/4.3/example/namelist.input .
cp /apps/WRF/4.3/WRF/run/*.TBL .
cp /apps/WRF/4.3/WRF/run/ozone* .
cp /apps/WRF/4.3/WRF/run/RRT* . |
Skripte za pokretanje poslova
Code Block |
---|
|
#!/bin/sh
#$ -N WPS
#$ -cwd
module load WRF/4.3
geogrid.exe
link_grib.csh ./DATA/*
ln -sf /apps/WRF/4.3/WPS/ungrib/Variable_Tables/Vtable.GFS Vtable
ungrib.exe
metgrid.exe |
Code Block |
---|
|
#!/bin/sh
#$ -N WRF
#$ -pe p28*mpi 28
#$ -cwd
module load WRF/4.3
ulimit -s unlimited
mpirun -np $NSLOTS real.exe
mpirun -np $NSLOTS real.exe |
Pokretanje poslova
Code Block |
---|
qsub wps.sge
qsub wrf.sge |
Code Block |
---|
#Download
wget http://www2.mmm.ucar.edu/wrf/src/WRFV3.8.1.TAR.gz
tar -xvzf WRFV3.8.1.TAR.gz
mv WRFV3/* .
rm -rf WRFV3
#install WRF-a
export PHDF5=/apps/WRF/dependencies/
export NETCDF=/apps/WRF/dependencies/
export PNETCDF=/apps/WRF/dependencies/
./clean -a
./configure (#67)
vi configure.wrf (-openmp u -qopenmp)
./compile -j 8 wrf |