{"id":771,"date":"2022-01-10T15:23:13","date_gmt":"2022-01-10T15:23:13","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf4\/?page_id=771"},"modified":"2022-01-13T16:32:12","modified_gmt":"2022-01-13T16:32:12","slug":"wrf","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/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>Versions 4.0.3, 4.3.1 and 4.3.2 are installed on CSF4.<\/p>\n<p>See also <a href=\"..\/wps\">WPS<\/a> &#8211; the WRF Preprocessing System.<\/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 <em>one<\/em> of the following modulefiles (which will cause the supporting library modules to be loaded too):<\/p>\n<pre>\r\nmodule load wrf\/4.3.3-foss-2020a-dmpar       # Note that WPS 4.3.3 is NOT available yet\r\nmodule load wrf\/4.3.2-foss-2020a-dmpar       # Note that WPS 4.3.2 is NOT available yet\r\nmodule load wrf\/4.3.1-foss-2020a-dmpar\r\nmodule load wrf\/4.0.3-foss-2020a-dmpar\r\n<\/pre>\n<p>Please see the <a href=\"..\/wps\">WPS instructions<\/a> for the corresponding WPS modulefiles.<\/p>\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\n# Work in your scratch area. For example:\r\ncd ~\/scratch\r\n\r\n# Copy the running directory from the central install to your current directory\r\ncp -a $WRF_RUNDIR <em>scenario_name<\/em>\r\n<\/pre>\n<p>This will create a directory named <code><em>scenario_name<\/em><\/code> in the current directory.<\/p>\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>Single node multicore parallel batch job submission<\/h3>\n<p>Create a jobscript similar to the following:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore         # (or --partition=) Single node parallel job\r\n#SBATCH -n 40                # (or --ntasks=) Number of cores - can be 2--40\r\n\r\n# Load the version you require (remove any inherited modules first)\r\nmodule purge\r\nmodule load wrf\/4.3.2-foss-2020a-dmpar\r\n\r\n# Remove any old log files (optional)\r\nrm -f rsl.error.* rsl.out.*\r\n\r\nmpirun wrf.exe\r\n        #\r\n        # Use your required executable (e.g., wrf.exe or real.exe)\r\n<\/pre>\n<p>The <code>rm -f<\/code> command is needed to clear out any pre-existing log files (which is not done by the program itself).<\/p>\n<h3>Multi-node parallel batch job submission<\/h3>\n<p>Create a jobscript similar to the following:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multinode         # (or --partition=) Multinode parallel job\r\n#SBATCH -n 80                # (or --ntasks=) Number of cores - can be 80 or more in multiples of 40\r\n\r\n# Load the version you require (remove any inherited modules first)\r\nmodule purge\r\nmodule load wrf\/4.3.2-foss-2020a-dmpar\r\n\r\n# Remove any old log files (optional)\r\nrm -f rsl.error.* rsl.out.*\r\n\r\nmpirun wrf.exe\r\n        #\r\n        # Use your required executable (e.g., wrf.exe or real.exe)\r\n<\/pre>\n<p>The <code>rm -f<\/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. Versions 4.0.3, 4.3.1 and 4.3.2 are installed on CSF4. See also WPS &#8211; the WRF Preprocessing System. 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.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/wrf\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":49,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-771","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":7,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/771\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/771\/revisions\/788"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/49"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/media?parent=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}