{"id":2392,"date":"2019-02-21T11:45:02","date_gmt":"2019-02-21T11:45:02","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2392"},"modified":"2025-09-10T10:03:19","modified_gmt":"2025-09-10T09:03:19","slug":"wrf","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/wrf\/","title":{"rendered":"WRF"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"http:\/\/www2.mmm.ucar.edu\/wrf\/users\/\">Weather Research and Forecasting Model (WRF)<\/a> is a state-of-the-art atmospheric modeling system designed for both meteorological research and numerical weather prediction.<\/p>\n<p>Version 4.0.3 is installed on the CSF.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>WRF is open source, and has been released with no restrictions on use (licensing or otherwise). <\/p>\n<h2>Set up procedure<\/h2>\n<p>We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this.<\/p>\n<p>Load one of the following modulefiles (which will cause the supporting library modules to be loaded too):<\/p>\n<pre>\r\nmodule load apps\/gcc\/wrf\/4.0.3\r\nmodule load apps\/intel-17.0\/wrf\/4.0.3\r\n<\/pre>\n<p>Copy the running directory (which contains standard input files required by WRF) for your version of the model using:<\/p>\n<pre>\r\ncp -a $WRF_RUNDIR [scenario_name]\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run WRF on the login node &#8211; it is computationally intensive, and requires MPI parallisation to run properly. Jobs should be submitted to the compute nodes via batch.<\/p>\n<h3>Parallel batch job submission<\/h3>\n<p>Two example batch scripts are included in the running directory:<\/p>\n<pre>\r\nbatch_example_short_real.sh\r\nbatch_example_short_wrf.sh\r\n<\/pre>\n<p>These have the form:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore      # (or --partition=) Use the AMD 168-core nodes\r\n#SBATCH -n 32             # (or --ntasks=) Number of cores (2-168)\r\n#SBATCH -t 4-0            # 4 day wallclock limit (max permitted is 7-0)\r\n\r\n# Start with a clean environment\r\nmodule purge\r\nmodule load apps\/gcc\/wrf\/4.0.3\r\n\r\n# Remove old output files\r\nrm rsl.error.* rsl.out.*\r\n\r\n# Slurm knows to run $SLURM_NTASKS processes (the -n number above)\r\nmpirun wrf.exe\r\n<\/pre>\n<p>The <code>rm<\/code> command is needed to clear out any pre-existing log files (which is not done by the program itself).<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"http:\/\/www2.mmm.ucar.edu\/wrf\/users\/\">WRF website<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Weather Research and Forecasting Model (WRF) is a state-of-the-art atmospheric modeling system designed for both meteorological research and numerical weather prediction. Version 4.0.3 is installed on the CSF. Restrictions on use WRF is open source, and has been released with no restrictions on use (licensing or otherwise). Set up procedure We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/wrf\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2392","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2392"}],"version-history":[{"count":12,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2392\/revisions"}],"predecessor-version":[{"id":10917,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2392\/revisions\/10917"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=2392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}