From Documentation
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Template:CCMissing}}
 +
{{Outdated}}
 
{{Software
 
{{Software
 
|package_name=WRF
 
|package_name=WRF
Line 10: Line 12:
 
=Version Selection=
 
=Version Selection=
  
To load the wrf/3.6 module, do the following steps.
+
Due to the high volume of request for user's own version, the wrf module will not be updated anymore. However, as per user's request, we will install it on the user's own directory. To this end, please open a ticket in our SHARCNET web portal.
 
+
<pre>
+
module load netcdf/intel/4.2
+
module load wrf/3.6
+
</pre>
+
  
 
=Job Submission=
 
=Job Submission=
Line 25: Line 22:
 
=Installing Packages=
 
=Installing Packages=
  
=General Notes=
+
==Installation==
 +
Here is a short instruction about how to install the package. Here the package is installed in /work/$USER.
  
=References=
+
1. Download the package (wrfv3+wps) and unzip the package
==WRF 3.2 Installation==
+
=== Configuration ===
+
Before the configuration, the path of NETCDF must be setup as
+
  
  [isaac@hnd50:/work/isaac/hound/builds/WRF/3.2/buildroot/opt/sharcnet/WRF/3.2/WRFV3] echo $NETCDF
+
  [isaac@orc-login2:/work/isaac] wget http://www.mmm.ucar.edu/wrf/src/WRFV3.6.TAR.gz
  /opt/sharcnet/netcdf/4.1.1/intel
+
  [isaac@orc-login2:/work/isaac] wget http://www.mmm.ucar.edu/wrf/src/WPSV3.6.TAR.gz
  
However, for some reasons, the version compiled on Brown for the user:kamal is based on netcdf-4.0.1. (ticket 12163)
+
2. Configure (wrf)
  
  [isaac@hnd50:/work/isaac/hound/builds/WRF/3.2/buildroot/opt/sharcnet/WRF/3.2/WRFV3] ./configure
+
  [isaac@orc-login2:/work/isaac/WRFV3] module load netcdf/intel/4.2
 +
[isaac@orc-login2:/work/isaac/WRFV3] ./configure
 
  checking for perl5... no
 
  checking for perl5... no
 
  checking for perl... found /usr/bin/perl (perl)
 
  checking for perl... found /usr/bin/perl (perl)
  Will use NETCDF in dir: /opt/sharcnet/netcdf/4.1.1/intel
+
  Will use NETCDF in dir: /opt/sharcnet/netcdf/4.2/intel  
 +
If you REALLY want Grib2 output from WRF, modify the arch/Config_new.pl script.
 +
Right now you are not getting the Jasper lib, from the environment, compiled into WRF.
 +
 
 +
------------------------------------------------------------------------
 
  Please select from among the following supported platforms.
 
  Please select from among the following supported platforms.
     1.  Linux x86_64, PGI compiler with gcc  (serial)
+
     1.  Linux x86_64 i486 i586 i686, PGI compiler with gcc  (serial)
     2. Linux x86_64, PGI compiler with gcc  (smpar)
+
     ...
    3. Linux x86_64, PGI compiler with gcc  (dmpar)
+
  15.  Linux x86_64 i486 i586 i686, ifort compiler with icc  (dmpar)
    4. Linux x86_64, PGI compiler with gcc  (dm+sm)
+
   ...  
    5.  Linux x86_64, PGI accelerator compiler with gcc  (serial)
+
    
    6.  Linux x86_64, PGI accelerator compiler with gcc  (smpar)
+
  Enter selection [1-51] : 15
    7.  Linux x86_64, PGI accelerator compiler with gcc  (dmpar)
+
    8.  Linux x86_64, PGI accelerator compiler with gcc  (dm+sm)
+
    9.  Linux x86_64 i486 i586 i686, ifort compiler with icc  (serial)
+
  10.  Linux x86_64 i486 i586 i686, ifort compiler with icc  (smpar)
+
  11.  Linux x86_64 i486 i586 i686, ifort compiler with icc  (dmpar)
+
   12. Linux x86_64 i486 i586 i686, ifort compiler with icc  (dm+sm)
+
  13. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc  (serial)
+
  14. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc  (dmpar)
+
  15.  x86_64 Linux, gfortran compiler with gcc   (serial)
+
  16.  x86_64 Linux, gfortran compiler with gcc  (smpar)
+
  17.  x86_64 Linux, gfortran compiler with gcc  (dmpar)
+
  18.  x86_64 Linux, gfortran compiler with gcc  (dm+sm)
+
  19.  Cray XT CLE/Linux x86_64, PGI compiler with gcc  (serial)
+
  20.  Cray XT CLE/Linux x86_64, PGI compiler with gcc  (smpar)
+
  21.  Cray XT CLE/Linux x86_64, PGI compiler with gcc  (dmpar)
+
  22.  Cray XT CLE/Linux x86_64, PGI compiler with gcc  (dm+sm)
+
  23.  Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc  (serial)
+
  24.  Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc  (smpar)
+
  25.  Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc  (dmpar)
+
  26.  Cray XT CLE/Linux x86_64, Cray CCE compiler with gcc  (dm+sm)  
+
  
 +
3. Compilation
  
The current version is based on the option 11: Linux x86_64 i486 i586 i686, ifort compiler with icc  (dmpar). Once it is configured, the configuration is in 'configure.wrf'
+
In particular, 'em_real' module requires more memory than the default. So, it is better to submit a job to compile it as follows
  
===Compilation===
+
sqsub -r 1d -o log -e error --mpp=4G ./compile em_real
  
- Type 'compile case_name' where you can find the case_names by simply typing
+
For the rest of modules which are described in README, it can be compiled by simply typing
  compile. The following are available:
+
+
      compile em_b_wave  (o)
+
      compile em_grav2d_x (x)
+
      compile em_heldsuarez (o)
+
      compile em_hill2d_x (x)
+
      compile em_les (o)
+
      compile em_quarter_ss (o)
+
      compile em_real (o)
+
      compile em_seabreeze2d_x (x)
+
      compile em_squall2d_x (x)
+
      compile em_squall2d_y (x)
+
      compile em_scm_xy (o)
+
      compile wrf (o)
+
+
      x: not-installed
+
      o: installed
+
  
==WPS Installation==
+
'./compile em_les'
  
WPS requires many different kinds of third-party software. Most importantly, WPS requires NCAR library and NCAR library calls many other third parties depending on the options that a user chooses.
+
4. Configure (wps)
  
Note) WPS needs to be installed after WRFV3 and other libraries are installed.
+
[isaac@orc-login2:/work/isaac/WPS] ./configure
 +
Will use NETCDF in dir: /opt/sharcnet/netcdf/4.2/intel
 +
Found Jasper environment variables for GRIB2 support...
 +
------------------------------------------------------------------------
 +
Please select from among the following supported platforms.
 +
1.  Linux x86_64, gfortran    (serial)
 +
... 
 +
19.  Linux x86_64, Intel compiler    (dmpar)
 +
20.  Linux x86_64, Intel compiler    (dmpar_NO_GRIB2)
 +
...
 +
Enter selection [1-36] : 20
  
==WPS Third Parties ==
+
5. Compilation (wps)
All third-parties are installed in 'WPS_LIBS' and the link is properly setup in configure.wps.
+
  
  [isaac@hnd50:/work/isaac/hound/buildroot/opt/sharcnet/WRF/WPS_3rd_party] ls -l
+
  './compile'
total 112
+
drwxr-xr-x 14 isaac isaac  4096 Oct 29 10:30 bison-2.4
+
drwxr-xr-x  9 isaac isaac  4096 Oct 29 10:28 flex-2.5.35
+
drwxr-xr-x  2 isaac isaac  4096 Oct 29 11:02 g2lib-1.2.0
+
drwxr-xr-x  6 isaac isaac  4096 Oct 29 10:31 gsl
+
drwxr-xr-x 17 isaac isaac  4096 Oct 29 10:27 hdf5-1.8.5
+
drwxr-xr-x  2 isaac isaac  4096 Oct 29 10:32 iotests
+
drwxr-xr-x  7 isaac isaac  4096 Oct 29 12:02 jasper
+
drwxr-xr-x  7 isaac isaac  4096 Oct 29 10:31 libpng-1.2.12
+
drwxr-xr-x  5 isaac isaac  4096 Oct 29 10:21 libtool-2.2.10
+
drwxr-xr-x 10 isaac isaac  4096 Oct 29 11:02 ncl_ncarg-5.2.1
+
drwxr-xr-x  6 isaac isaac  4096 Oct 29 11:02 udunits-2.1.18
+
drwxr-xr-x 14 isaac isaac  4096 Oct 29 11:04 vis5d+-1.3.0-beta
+
drwxr-xr-x 11 isaac isaac  4096 Oct 29 10:23 zlib-1.2.3
+
  
==References==
+
=General Notes=
 +
 
 +
WRF can adopt a variety of modules such as WRF-CHEM, WRF-Var, WRF-BC and so on. Therefore, you may want to install your own version into your working directory. The installation process is a bit straight-foward as described above. One thing you should make sure is to load 'netcdf/intel/4.2' before you start the configuration and compilation.
 +
 
 +
NCAR graphics, which requires to run pre/post processing of the data, is not supported for now in the SHARCNET machines since all clusters targets to run the cpu-intensive jobs but it is expected to be installed shortly.
 +
 
 +
=References=
  
 
o WRF Homepage<br>
 
o WRF Homepage<br>
 
http://www.wrf-model.org/index.php
 
http://www.wrf-model.org/index.php
 +
 +
o WRF online tutorial<br>
 +
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/index.htm

Latest revision as of 10:43, 6 June 2019

This page is will be deleted pending it's creation on the CC wiki.
Note: This page hasn't been updated for a long time, and is most likely outdated.
If you need it to be updated, please submit a ticket to help@sharcnet.ca with the link to the page.


WRF
Description: The Weather Research and Forecasting System software
SHARCNET Package information: see WRF software page in web portal
Full list of SHARCNET supported software


Introduction

The Weather Research and Forecasting system is in the public domain and is freely available for community use. It is designed to be a flexible, state-of-the-art atmospheric simulation system that is portable and efficient on available parallel computing platforms. It has two different model simulations such as ARW model and NMM model. WPS is the pre- and post-processing tool and needs to be installed together.

Version Selection

Due to the high volume of request for user's own version, the wrf module will not be updated anymore. However, as per user's request, we will install it on the user's own directory. To this end, please open a ticket in our SHARCNET web portal.

Job Submission

sqsub -r 2d -q serial -o ofile.%J wrf.exe

Installing Packages

Installation

Here is a short instruction about how to install the package. Here the package is installed in /work/$USER.

1. Download the package (wrfv3+wps) and unzip the package

[isaac@orc-login2:/work/isaac] wget http://www.mmm.ucar.edu/wrf/src/WRFV3.6.TAR.gz
[isaac@orc-login2:/work/isaac] wget http://www.mmm.ucar.edu/wrf/src/WPSV3.6.TAR.gz

2. Configure (wrf)

[isaac@orc-login2:/work/isaac/WRFV3] module load netcdf/intel/4.2
[isaac@orc-login2:/work/isaac/WRFV3] ./configure
checking for perl5... no
checking for perl... found /usr/bin/perl (perl)
Will use NETCDF in dir: /opt/sharcnet/netcdf/4.2/intel 
If you REALLY want Grib2 output from WRF, modify the arch/Config_new.pl script.
Right now you are not getting the Jasper lib, from the environment, compiled into WRF.
------------------------------------------------------------------------
Please select from among the following supported platforms.
   1.  Linux x86_64 i486 i586 i686, PGI compiler with gcc  (serial)
   ...
 15.  Linux x86_64 i486 i586 i686, ifort compiler with icc  (dmpar)
  ... 
 
Enter selection [1-51] : 15

3. Compilation

In particular, 'em_real' module requires more memory than the default. So, it is better to submit a job to compile it as follows

sqsub -r 1d -o log -e error --mpp=4G ./compile em_real

For the rest of modules which are described in README, it can be compiled by simply typing

'./compile em_les'

4. Configure (wps)

[isaac@orc-login2:/work/isaac/WPS] ./configure
Will use NETCDF in dir: /opt/sharcnet/netcdf/4.2/intel
Found Jasper environment variables for GRIB2 support...
------------------------------------------------------------------------
Please select from among the following supported platforms.
1.  Linux x86_64, gfortran    (serial)
...  
19.  Linux x86_64, Intel compiler    (dmpar)
20.  Linux x86_64, Intel compiler    (dmpar_NO_GRIB2)
...
Enter selection [1-36] : 20

5. Compilation (wps)

'./compile'

General Notes

WRF can adopt a variety of modules such as WRF-CHEM, WRF-Var, WRF-BC and so on. Therefore, you may want to install your own version into your working directory. The installation process is a bit straight-foward as described above. One thing you should make sure is to load 'netcdf/intel/4.2' before you start the configuration and compilation.

NCAR graphics, which requires to run pre/post processing of the data, is not supported for now in the SHARCNET machines since all clusters targets to run the cpu-intensive jobs but it is expected to be installed shortly.

References

o WRF Homepage
http://www.wrf-model.org/index.php

o WRF online tutorial
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/index.htm