software:wrf:caviness

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:wrf:caviness [2021-02-03 12:37] – [Example WPS run] anitasoftware:wrf:caviness [2024-04-01 15:06] (current) – [Download and install required libraries] anita
Line 33: Line 33:
  
 <code bash> <code bash>
-  [(it_css:traine)@login01 ~]$ WRF_PREFIX=/work/it_css/sw/wrf/20210121 ## MAKE SURE THAT THIS IS CHANGED TO YOUR WORK GROUP DIRECTORY OR HOME DIRECTORY ##+  [(it_css:traine)@login01 ~]$ WRF_PREFIX=$WORKDIR/sw/wrf/20210121 ## MAKE SURE THAT THIS IS CHANGED TO YOUR WORK GROUP DIRECTORY OR HOME DIRECTORY ##
   [(it_css:traine)@login01 ~]$ mkdir -p "$WRF_PREFIX"   [(it_css:traine)@login01 ~]$ mkdir -p "$WRF_PREFIX"
   [(it_css:traine)@login01 ~]$ WRF_SRC="${WRF_PREFIX}/src"   [(it_css:traine)@login01 ~]$ WRF_SRC="${WRF_PREFIX}/src"
Line 73: Line 73:
 === Install netcdf library ===  === Install netcdf library === 
 <code bash> <code bash>
-  [(it_css:traine)@login01 LIBRARIES]$ tar -xf netcdf-4.1.3+  [(it_css:traine)@login01 LIBRARIES]$ tar -xf netcdf-4.1.3.tar.gz
   [(it_css:traine)@login01 LIBRARIES]$ cd netcdf-4.1.3   [(it_css:traine)@login01 LIBRARIES]$ cd netcdf-4.1.3
   [(it_css:traine)@login01 netcdf-4.1.3]$ ./configure --prefix="$WRF_PREFIX" --disable-dap --disable-netcdf-4 --disable-shared   [(it_css:traine)@login01 netcdf-4.1.3]$ ./configure --prefix="$WRF_PREFIX" --disable-dap --disable-netcdf-4 --disable-shared
Line 82: Line 82:
 === Install zlib library === === Install zlib library ===
 <code bash> <code bash>
-  [(it_css:traine)@login01 LIBRARIES]$ tar -xf zlib-1.2.7.tar*+  [(it_css:traine)@login01 LIBRARIES]$ tar -xf zlib-1.2.7.tar.gz
   [(it_css:traine)@login01 LIBRARIES]$ cd zlib-1.2.7   [(it_css:traine)@login01 LIBRARIES]$ cd zlib-1.2.7
   [(it_css:traine)@login01 zlib-1.2.7]$ ./configure --prefix="$WRF_PREFIX"   [(it_css:traine)@login01 zlib-1.2.7]$ ./configure --prefix="$WRF_PREFIX"
Line 91: Line 91:
 === Install libpng library === === Install libpng library ===
 <code bash> <code bash>
-  [(it_css:traine)@login01 LIBRARIES]$ tar -xf libpng-1.2.50.tar*+  [(it_css:traine)@login01 LIBRARIES]$ tar -xf libpng-1.2.50.tar.gz
   [(it_css:traine)@login01 LIBRARIES]$ cd libpng-1.2.50   [(it_css:traine)@login01 LIBRARIES]$ cd libpng-1.2.50
   [(it_css:traine)@login01 libpng-1.2.50]$ ./configure --prefix="$WRF_PREFIX"   [(it_css:traine)@login01 libpng-1.2.50]$ ./configure --prefix="$WRF_PREFIX"
Line 100: Line 100:
 === Install jasper library === === Install jasper library ===
 <code bash> <code bash>
-  [(it_css:traine)@login01 LIBRARIES]$ tar -xf jasper-1.900.1.tar*+  [(it_css:traine)@login01 LIBRARIES]$ tar -xf jasper-1.900.1.tar.gz
   [(it_css:traine)@login01 LIBRARIES]$ cd jasper-1.900.1   [(it_css:traine)@login01 LIBRARIES]$ cd jasper-1.900.1
   [(it_css:traine)@login01 jasper-1.900.1]$ ./configure --prefix="$WRF_PREFIX"   [(it_css:traine)@login01 jasper-1.900.1]$ ./configure --prefix="$WRF_PREFIX"
Line 159: Line 159:
 </code> </code>
 === Configure WRF parallel build === === Configure WRF parallel build ===
-Configuring parallel build. You will want to select option ''66''  and nesting option ''0''.+Configuring parallel build. You will want to select option ''66''  and nesting option ''1''.
 <code bash> <code bash>
   [(it_css:traine)@login01 WRF]$  ./clean -a    [(it_css:traine)@login01 WRF]$  ./clean -a 
Line 168: Line 168:
 <code bash> <code bash>
   [(it_css:traine)@login01 WRF]$ patch -p1 <<EOT   [(it_css:traine)@login01 WRF]$ patch -p1 <<EOT
-  --- A/configure.wrf     2020-12-10 14:06:01.907649095 -0500 +  --- A/configure.wrf 2020-12-10 14:06:01.907649095 -0500 
-  +++ B/configure.wrf     2020-12-10 14:40:00.791338460 -0500+  +++ B/configure.wrf 2020-12-10 14:40:00.791338460 -0500
   @@ -118,8 +118,8 @@   @@ -118,8 +118,8 @@
    SFC                   ifort    SFC                   ifort
Line 179: Line 179:
   +DM_CC                 mpicc   +DM_CC                 mpicc
    FC              =       time \$(DM_FC)    FC              =       time \$(DM_FC)
-   CC              =       \$(DM_CC) -DFSEEKO64_OK+   CC              =       \$(DM_CC) -DFSEEKO64_OK 
    LD              =       \$(FC)    LD              =       \$(FC)
   @@ -140,7 +140,7 @@   @@ -140,7 +140,7 @@
Line 187: Line 187:
   -FCBASEOPTS      =       \$(FCBASEOPTS_NO_G) \$(FCDEBUG)   -FCBASEOPTS      =       \$(FCBASEOPTS_NO_G) \$(FCDEBUG)
   +FCBASEOPTS      =       \$(FCBASEOPTS_NO_G) \$(FCDEBUG) -assume nocc_omp   +FCBASEOPTS      =       \$(FCBASEOPTS_NO_G) \$(FCDEBUG) -assume nocc_omp
-   MODULE_SRCH_FLAG =+   MODULE_SRCH_FLAG =     
    TRADFLAG        =      -traditional-cpp    TRADFLAG        =      -traditional-cpp
    CPP                  /lib/cpp -P -nostdinc    CPP                  /lib/cpp -P -nostdinc
Line 479: Line 479:
 <code bash> <code bash>
   [triane@r00n49 wps_job]$  ls -l GRIB*   [triane@r00n49 wps_job]$  ls -l GRIB*
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAA -> ../data/GFS/gfs_20210107_00z_000f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAA -> ../data/GFS/gfs_20210107_00z_000f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAB -> ../data/GFS/gfs_20210107_00z_003f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAB -> ../data/GFS/gfs_20210107_00z_003f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAC -> ../data/GFS/gfs_20210107_00z_006f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAC -> ../data/GFS/gfs_20210107_00z_006f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAD -> ../data/GFS/gfs_20210107_00z_009f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAD -> ../data/GFS/gfs_20210107_00z_009f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAE -> ../data/GFS/gfs_20210107_00z_012f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAE -> ../data/GFS/gfs_20210107_00z_012f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAF -> ../data/GFS/gfs_20210107_00z_015f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAF -> ../data/GFS/gfs_20210107_00z_015f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAG -> ../data/GFS/gfs_20210107_00z_018f +  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAG -> ../data/GFS/gfs_20210107_00z_018f 
-  lrwxrwxrwx 1 mkyle it_css 33 Jan 26 13:59 GRIBFILE.AAH -> ../data/GFS/gfs_20210107_00z_021f+  lrwxrwxrwx 1 traine it_css 33 Jan 26 13:59 GRIBFILE.AAH -> ../data/GFS/gfs_20210107_00z_021f
   ...   ...
 </code> </code>
Line 507: Line 507:
 The last step is to run ''metgrid.exe'' The last step is to run ''metgrid.exe''
 <code bash> <code bash>
-  [triane@r00n49 wps_job]$ srun metgrid.exe+  [triane@r00n49 wps_job]$ metgrid.exe
   ... #MANY LINES & MINUTES LATER   ... #MANY LINES & MINUTES LATER
   Processing 2021-01-13_21   Processing 2021-01-13_21
Line 613: Line 613:
   /   /
 </code> </code>
-To run WRF, we will use the ''wrfmpi.qs'' file. This job script is based on the script template found in ''/opt/templates/slurm/generic/mpi/openmpi/openmpi.qs''. The ''openmpi.qs'' job script file is updated regularly, so it is suggested that you also check and compare the contents of the ''openmpi.qs'' files to see if there has been any major changes to it. If there has been, then you might want to consider adding those changes to the ''wrfmpi.qs'' job script. To run WRF, you will use ''sbatch'' to submit the job to Slurm.+To run WRF, we will use the ''wrfmpi.qs'' file. This job script is based on the script template found in ''/opt/shared/templates/slurm/generic/mpi/openmpi/openmpi.qs''. The ''openmpi.qs'' job script file is updated regularly, so it is suggested that you also check and compare the contents of the ''openmpi.qs'' files to see if there has been any major changes to it. If there has been, then you might want to consider adding those changes to the ''wrfmpi.qs'' job script. To run WRF, you will use ''sbatch'' to submit the job to Slurm.
 <code bash> <code bash>
   [(it_css:traine)@login01 wrf_job]$ sbatch wrfmpi.qs   [(it_css:traine)@login01 wrf_job]$ sbatch wrfmpi.qs
  • software/wrf/caviness.1612373820.txt.gz
  • Last modified: 2021-02-03 12:37
  • by anita