Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Updated: 04 12 January 2024

Table of Contents
minLevel1
maxLevel4
stylecircle

...

Code Block
languagebash
module purge
module load cpeIntel/23.09
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.39-cpeIntel-23.09
module load JasPer/1.900.1-cpeIntel-23.09
module load ADIOS2/2.9.1-cpeIntel-23.09

export WRF_EM_CORE=1    # Explicitly select ARW core developed by NCAR
export WRF_NMM_CORE=0   # Not NMM core
export WRF_CHEM=0       # Select WRF-Chem

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 ADIOS2=${EBROOTADIOS2}
unset ADIOS2            # ADIOS2 have not yet been integrated well into WRFDA 4dvar.

export JASPERINC=${EBROOTJASPER}/include              # (Optional)
export JASPERLIB=${EBROOTJASPER}/lib                  # (Optional)
export WRFIO_NCD_LARGE_FILE_SUPPORT=1                 # (Optional)
export PNETCDF_QUILT=1                                # (Optional)

### Common mistake :: insert spaces before or after =

...

Code Block
languagebash
FC=ftn
FC77=ftn
CC=cc
LDFLAGS_ARCH= -static-intel
CFLAGS_ARCH=
FFLAGS_ARCH=-fPIC -O3O2 -fp-model source -static-intel
AR=ar r

# Loop unrolling causes ifort v13 and later to take a long time to compile these subroutines
FFLAGS_ARCH_rttov_opdep_9_ad=-fPIC -O3O2 -unroll0 -fp-model source
FFLAGS_ARCH_rttov_opdep_9_k=-fPIC -O3O2 -unroll0 -fp-model source
FFLAGS_ARCH_rttov_opdep_13_ad=-fPIC -O3O2 -unroll0 -fp-model source
FFLAGS_ARCH_rttov_opdep_13_k=-fPIC -O3O2 -unroll0 -fp-model source

# -fp-model source ensures more consistent floating point results

...

  1. Run ls ./var/build/*.exe | wc -l to check if 43 executables were successfully compiled.

  2. Run ls ./var/obsproc/src/*.exe to check if obsproc.exe exists.

Note

ADIOS2 have not yet been integrated well into WRFDA 4dvar.

Execute ldd ./var/build/da_wrfvar.exe and check that there is not any libadios2_xxx.so.x linked.

8. Example: Job submission script

Code Block
languagebash
#!/bin/bash
#SBATCH -p compute              # Partition
#SBATCH -N 1                    # Number of nodes
#SBATCH --ntasks-per-node=128   # Number of MPI processes per node
#SBATCH -t 5-00:00:00           # Job runtime limit
#SBATCH -J WRFDA                # Job name
#SBATCH -A ltxxxxxx             # Account *** {USER EDIT} ***

module purge
module load cpeIntel/23.09
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.39-cpeIntel-23.09
module load JasPer/1.900.1-cpeIntel-23.09
module load ADIOS2/2.9.1-cpeIntel-23.09

export OMP_NUM_THREADS=1

ulimit -s unlimited

...

...

Contact Us
ThaiSC support service : thaisc-support@nstda.or.th

...