<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://docs.snic.se/w/index.php?action=history&amp;feed=atom&amp;title=Building_and_testing_WRF_on_Triolioth</id>
	<title>Building and testing WRF on Triolioth - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://docs.snic.se/w/index.php?action=history&amp;feed=atom&amp;title=Building_and_testing_WRF_on_Triolioth"/>
	<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Building_and_testing_WRF_on_Triolioth&amp;action=history"/>
	<updated>2026-05-15T06:25:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.10</generator>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Building_and_testing_WRF_on_Triolioth&amp;diff=6586&amp;oldid=prev</id>
		<title>Hamish Struthers (NSC): Created page with &quot;This page describes the compiling and testing of the [http://www.wrf-model.org/index.php WRF] v371 model on NSC's triolith system ([http://www.nsc.liu.se/systems/triolith/ Trioli...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Building_and_testing_WRF_on_Triolioth&amp;diff=6586&amp;oldid=prev"/>
		<updated>2016-11-03T12:57:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page describes the compiling and testing of the [http://www.wrf-model.org/index.php WRF] v371 model on NSC&amp;#039;s triolith system ([http://www.nsc.liu.se/systems/triolith/ Trioli...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page describes the compiling and testing of the [http://www.wrf-model.org/index.php WRF] v371 model on NSC's triolith system ([http://www.nsc.liu.se/systems/triolith/ Triolith]). Source code can be downloaded from the WRF page ([http://www2.mmm.ucar.edu/wrf/users/download/get_source.html]) after filling in a registration form.&lt;br /&gt;
&lt;br /&gt;
The notes below refer to compiling and testing version 3.7.1 of the model.&lt;br /&gt;
&lt;br /&gt;
1. Ensure the correct intel compiler, HDF5 and netcdf modules are loaded using:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;module load buildenv-intel/2015-1&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;module load hdf5/1.8.14-i1403-impi-5.0.2.044&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;module load netcdf/4.3.2-i1403-impi-5.0.2.044-hdf5-1.8.14&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Set appropriate HDF5 and netcdf environmeot variables:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;export PHDF5=/software/apps/hdf5/1.8.14/i1403-impi-5.0.2.044&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;export NETCDF=/software/apps/netcdf/4.3.2/i1403-impi-5.0.2.044-hdf5-1.8.14&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Configure the model. In the WRF base folder (WRF3):&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are using/testing the 3D version of the model, choose option 16&lt;br /&gt;
&lt;br /&gt;
If you are using/testing the 2D version of the model, choose option 13 (serial). For the 2D case, at this point the &amp;lt;code&amp;gt;configure.wrf&amp;lt;/code&amp;gt; file also needs to be edited - lines 241-244 should appear as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&lt;br /&gt;
 LIB_EXTERNAL    = \&lt;br /&gt;
                      -L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/software/apps/netcdf/4.3.2/i1403-impi-5.0.2.044-hdf5-1.8.14/lib -lnetcdff -lnetcdf   \&lt;br /&gt;
                      -L/software/apps/intel/composer_xe_2015.1.133/compiler/lib/intel64 -liomp5&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Compile the model:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;./compile -j 4 wrf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Compile test case (see README_test_cases), e.g. 3D quarter-circle sheer supercell&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;./compile em_quarter_ss&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. After a successful build, go to the specific test directory, e.g.:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;cd test/em_quarter_ss&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and run the initialization (&amp;lt;code&amp;gt;ideal.exe&amp;lt;/code&amp;gt;) followed by the simulation (&amp;lt;code&amp;gt;wrf.exe&amp;lt;/code&amp;gt;). &lt;br /&gt;
&lt;br /&gt;
* 3D case &lt;br /&gt;
&lt;br /&gt;
The model should be launched using NSC's [https://www.nsc.liu.se/systems/triolith/software/triolith-software-apps-mpprun.html mpprun] MPI launch application. The model can be tested using an interactive session e.g.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;interactive -N 1 -A &amp;lt;your-SNCI-project-code&amp;gt; -t 01:00:00&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;mpprun ideal.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;mpprun wrf.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or by submitting a run script to the batch queue system on Triolith e.g. run script:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;&lt;br /&gt;
 #!/bin/csh&lt;br /&gt;
 #SBATCH -t 01:00:00&lt;br /&gt;
 #SBATCH -A &amp;lt;your-SNCI-project-code&amp;gt;&lt;br /&gt;
 #SBATCH -N 1&lt;br /&gt;
 mpprun ideal.exe&lt;br /&gt;
 mpprun wrf.exe&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More information regarding [https://www.nsc.liu.se/support/running-applications/ running applications] on Triolith.&lt;br /&gt;
&lt;br /&gt;
* 2D case&lt;br /&gt;
&lt;br /&gt;
For the 2D case, the serial code can be launched directly e.g. &amp;lt;code&amp;gt;./ideal.exe&amp;lt;/code&amp;gt; however note that you should still run jobs within an interactive session:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;interactive -n 1 -A &amp;lt;your-SNCI-project-code&amp;gt; -t 01:00:00&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;./ideal.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;./wrf.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or through Triolith's batch system.&lt;/div&gt;</summary>
		<author><name>Hamish Struthers (NSC)</name></author>
		
	</entry>
</feed>