Updated: 10 July 18 October 2023
Tip |
---|
A variant of WRF must be compiled prior to WPS. |
...
1. Load required modules and set environment variables
Specify Paste the below lines into your terminal. Don’t forget to specify the path of to your local WRF directory, i.e., WRF_DIR.
Code Block | ||
---|---|---|
| ||
module purge module load cpeIntel/23.0309 module load cray-hdf5-parallel/1.12.2.7 module load cray-netcdf-hdf5parallel/4.9.0.7 module load cray-parallel-netcdf/1.12.3.7 module load libpng/1.6.3739-cpeIntel-23.0309 module load JasPer/1.900.1-cpeIntel-23.0309 export WRF_DIR=../WRF # Path to WRF directory *** {USER EDIT} *** export NETCDF=${CRAY_NETCDF_HDF5PARALLEL_PREFIX} export NETCDFPAR=${CRAY_NETCDF_HDF5PARALLEL_PREFIX} export PNETCDF=${CRAY_PARALLEL_NETCDF_PREFIX} export HDF5=${CRAY_HDF5_PARALLEL_PREFIX} export JASPERINC=${EBROOTJASPER}/include # (Optional) export JASPERLIB=${EBROOTJASPER}/lib # (Optional) ### Common mistake :: insert spaces before or after = |
...
Open ./configure.wps using a text editor such as vi
Add
-L/lustrefs/disk/modules/easybuild/software/libpng/1.6.37-cpeIntel-23.03/lib
toCOMPRESSION_LIBS
(L$(EBROOTLIBPNG)/lib
between -ljasper and -lpng) [-L$EBROOTLIBPNG/lib
]Append
-Wno-implicit-function-declaration -Wno-implicit-int
tocc
.
Code Block | ||
---|---|---|
| ||
vi configure.wps # Change COMPRESSION_LIBS = ... -ljasper -lpng -lz # to COMPRESSION_LIBS = ... -ljasper -L/lustrefs/disk/modules/easybuild/software/libpng/1.6.37-cpeIntel-23.03/L$(EBROOTLIBPNG)/lib -lpng -lz # Change SCC = cc # to SCC = cc -Wno-implicit-function-declaration -Wno-implicit-int |
Info |
---|
If WRF was compiled with sm+dm option, also append |
5. Compile WPS
...
Code Block |
---|
#!/bin/bash #SBATCH -p compute # Partition #SBATCH -N 1 # Number of nodes #SBATCH --ntasks-per-node=16 # Number of MPI processes per node #SBATCH -t 5-00:00:00 # Job runtime limit #SBATCH -J WPS # Job name #SBATCH -A ltxxxxxx # Account *** {USER EDIT} *** module purge module load cpeIntel/23.0309 module load cray-hdf5-parallel/1.12.2.7 module load cray-netcdf-hdf5parallel/4.9.0.7 module load cray-parallel-netcdf/1.12.3.7 module load libpng/1.6.3739-cpeIntel-23.0309 module load JasPer/1.900.1-cpeIntel-23.03 module load flex/2.6.409 export OMP_NUM_THREADS=1 ulimit -s unlimited srun -n16 ./geogrid.exe srun -N1 -n1 ./ungrib.exe srun -n16 ./metgrid.exe #srun -n16 ./real.exe #srun ./wrf.exe |
...
Contact Us
ThaiSC support service : thaisc-support@nstda.or.th