<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.myroms.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3Abuild_roms</id>
	<title>Talk:build roms - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.myroms.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3Abuild_roms"/>
	<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;action=history"/>
	<updated>2026-04-27T15:33:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=6000&amp;oldid=prev</id>
		<title>Arango at 17:43, 2 June 2021</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=6000&amp;oldid=prev"/>
		<updated>2021-06-02T17:43:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:43, 2 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build_roms.csh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build_roms.csh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build_roms.csh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build_roms.csh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &amp;#039;&amp;#039;&amp;#039;.in&amp;#039;&amp;#039;&amp;#039; extension by convention to indicate these files. For the test cases, these are found in the &amp;#039;&amp;#039;&amp;#039;ROMS/External&amp;#039;&amp;#039;&amp;#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;cp&amp;#039;&amp;#039;&amp;#039; &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&amp;#039;&amp;#039;&amp;#039;NtileI&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;NtileJ&amp;#039;&amp;#039;&amp;#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&amp;#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build_roms.csh&amp;lt;/span&amp;gt; script&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &amp;#039;&amp;#039;&amp;#039;.in&amp;#039;&amp;#039;&amp;#039; extension by convention to indicate these files. For the test cases, these are found in the &amp;#039;&amp;#039;&amp;#039;ROMS/External&amp;#039;&amp;#039;&amp;#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;cp&amp;#039;&amp;#039;&amp;#039; &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&amp;#039;&amp;#039;&amp;#039;NtileI&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;NtileJ&amp;#039;&amp;#039;&amp;#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&amp;#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build_roms.csh&amp;lt;/span&amp;gt; script&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./romsS&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./romsO&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;oceanM&lt;/del&gt;&#039;&#039;&#039; roms_lake_signell.in &amp;amp; log &amp;amp; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;(MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./romsS&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./romsO&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;romsM&lt;/ins&gt;&#039;&#039;&#039; roms_lake_signell.in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt;&lt;/ins&gt;&amp;amp; log &amp;amp; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;(MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&quot;box&quot;&amp;gt;[[ncview]] &#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ocean_his&lt;/del&gt;.nc&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&quot;box&quot;&amp;gt;[[ncview]] &#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;roms_his&lt;/ins&gt;.nc&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5995&amp;oldid=prev</id>
		<title>Arango at 17:11, 2 June 2021</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5995&amp;oldid=prev"/>
		<updated>2021-06-02T17:11:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:11, 2 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:Rsignell|Rsignell]] 17:31, 18 June 2007 (UTC)&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:Rsignell|Rsignell]] 17:31, 18 June 2007 (UTC)&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is an example of using the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh&lt;/del&gt;&amp;lt;/span&amp;gt; script to build the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] test case, one of my favorites!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is an example of using the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build_roms&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;csh&lt;/ins&gt;&amp;lt;/span&amp;gt; script to build the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] test case, one of my favorites!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make a project directory. On our Opteron cluster, I have one directory where I keep the source code: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;and another where I actually do model runs&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;So on my system, for a new test, I make a directory called&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make a project directory. On our Opteron cluster, I have one directory where I keep the source code: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;and another where I actually do model runs&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;So on my system, for a new test, I make a directory called&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Checkout the source code using &#039;&#039;&#039;svn&#039;&#039;&#039; (or unpack the source code if you got a tarfile or zipfile somewhere) and copy the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh&lt;/del&gt;&amp;lt;/span&amp;gt; script (which you will find in &#039;&#039;&#039;ROMS/Bin&#039;&#039;&#039; sub-directory) to your project directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Checkout the source code using &#039;&#039;&#039;svn&#039;&#039;&#039; (or unpack the source code if you got a tarfile or zipfile somewhere) and copy the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build_roms&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;csh&lt;/ins&gt;&amp;lt;/span&amp;gt; script (which you will find in &#039;&#039;&#039;ROMS/Bin&#039;&#039;&#039; sub-directory) to your project directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh&lt;/del&gt;&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pgi&lt;/del&gt;&#039;&#039;&#039;, &#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ifort&lt;/del&gt;&#039;&#039;&#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &#039;&#039;&#039;pgi&#039;&#039;&#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&quot;red&quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &#039;&#039;&#039;on&#039;&#039;&#039; as well as &#039;&#039;&#039;pgi&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build_roms&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;csh&lt;/ins&gt;&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ifort&#039;&#039;&#039;, &#039;&#039;&#039;gfortran&lt;/ins&gt;&#039;&#039;&#039;, &#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pgi&lt;/ins&gt;&#039;&#039;&#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &#039;&#039;&#039;pgi&#039;&#039;&#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&quot;red&quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &#039;&#039;&#039;on&#039;&#039;&#039; as well as &#039;&#039;&#039;pgi&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh&lt;/del&gt;&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;./&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh &lt;/del&gt;-j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build_roms&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;csh&lt;/ins&gt;&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;./&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build_roms&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;csh &lt;/ins&gt;-j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh&lt;/del&gt;&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build_roms&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;csh&lt;/ins&gt;&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;oceanS&lt;/del&gt;&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;oceanO&lt;/del&gt;&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./oceanM&#039;&#039;&#039; roms_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;romsS&lt;/ins&gt;&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;romsO&lt;/ins&gt;&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./oceanM&#039;&#039;&#039; roms_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5977&amp;oldid=prev</id>
		<title>Robertson: Robertson moved page Talk:build Script to Talk:build roms: Script changed names</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5977&amp;oldid=prev"/>
		<updated>2021-05-24T13:53:06Z</updated>

		<summary type="html">&lt;p&gt;Robertson moved page &lt;a href=&quot;/wiki/Talk:build_Script&quot; class=&quot;mw-redirect&quot; title=&quot;Talk:build Script&quot;&gt;Talk:build Script&lt;/a&gt; to &lt;a href=&quot;/wiki/Talk:build_roms&quot; title=&quot;Talk:build roms&quot;&gt;Talk:build roms&lt;/a&gt;: Script changed names&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:53, 24 May 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Robertson</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5881&amp;oldid=prev</id>
		<title>Robertson: Text replacement - &quot;\.in&quot; to &quot;.in&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5881&amp;oldid=prev"/>
		<updated>2021-01-08T17:35:19Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;\.in&amp;quot; to &amp;quot;.in&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:35, 8 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\&lt;/del&gt;.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\&lt;/del&gt;.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;roms_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./oceanS&#039;&#039;&#039; &amp;lt; roms_lake_signell&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\&lt;/del&gt;.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./oceanO&#039;&#039;&#039; &amp;lt; roms_lake_signell&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\&lt;/del&gt;.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./oceanM&#039;&#039;&#039; roms_lake_signell&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\&lt;/del&gt;.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./oceanS&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./oceanO&#039;&#039;&#039; &amp;lt; roms_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./oceanM&#039;&#039;&#039; roms_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Robertson</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5801&amp;oldid=prev</id>
		<title>Robertson: Text replacement - &quot;ocean_(.*)\.in&quot; to &quot;roms_$1\.in&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=5801&amp;oldid=prev"/>
		<updated>2020-07-21T18:47:37Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;ocean_(.*)\.in&amp;quot; to &amp;quot;roms_$1\.in&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:47, 21 July 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ocean_lake_signell&lt;/del&gt;.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ocean_lake_signell&lt;/del&gt;.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;roms_lake_signell\&lt;/ins&gt;.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;roms_lake_signell\&lt;/ins&gt;.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./oceanS&#039;&#039;&#039; &amp;lt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ocean_lake_signell&lt;/del&gt;.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./oceanO&#039;&#039;&#039; &amp;lt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ocean_lake_signell&lt;/del&gt;.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./oceanM&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ocean_lake_signell&lt;/del&gt;.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;./oceanS&#039;&#039;&#039; &amp;lt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;roms_lake_signell\&lt;/ins&gt;.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&#039;&#039;&#039;./oceanO&#039;&#039;&#039; &amp;lt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;roms_lake_signell\&lt;/ins&gt;.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&#039;&#039;&#039;mpirun&#039;&#039;&#039; -n 4 -hostfile node_file &#039;&#039;&#039;./oceanM&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;roms_lake_signell\&lt;/ins&gt;.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Robertson</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2533&amp;oldid=prev</id>
		<title>Arango at 16:51, 6 March 2008</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2533&amp;oldid=prev"/>
		<updated>2008-03-06T16:51:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:51, 6 March 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt;&lt;/del&gt;&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input files to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &#039;&#039;&#039;ROMS/External&#039;&#039;&#039; directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF metadata parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles (&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanS&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanO&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;mpirun&amp;#039;&amp;#039;&amp;#039; -n 4 -hostfile node_file &amp;#039;&amp;#039;&amp;#039;./oceanM&amp;#039;&amp;#039;&amp;#039; ocean_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanS&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanO&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;mpirun&amp;#039;&amp;#039;&amp;#039; -n 4 -hostfile node_file &amp;#039;&amp;#039;&amp;#039;./oceanM&amp;#039;&amp;#039;&amp;#039; ocean_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2310&amp;oldid=prev</id>
		<title>Arango at 17:34, 18 June 2007</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2310&amp;oldid=prev"/>
		<updated>2007-06-18T17:34:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:34, 18 June 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Arango&lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Arango&lt;/del&gt;]] 17:31, 18 June 2007 (UTC)&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Rsignell&lt;/ins&gt;|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Rsignell&lt;/ins&gt;]] 17:31, 18 June 2007 (UTC)&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;----&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is an example of using the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script to build the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] test case, one of my favorites!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is an example of using the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script to build the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] test case, one of my favorites!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2309&amp;oldid=prev</id>
		<title>Arango at 17:31, 18 June 2007</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2309&amp;oldid=prev"/>
		<updated>2007-06-18T17:31:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:31, 18 June 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[User:Arango|Arango]] 17:31, 18 June 2007 (UTC)&amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is an example of using the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script to build the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] test case, one of my favorites!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is an example of using the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script to build the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] test case, one of my favorites!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2308&amp;oldid=prev</id>
		<title>Arango at 16:04, 18 June 2007</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2308&amp;oldid=prev"/>
		<updated>2007-06-18T16:04:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:04, 18 June 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;ifort&amp;#039;&amp;#039;&amp;#039;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039; compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; as well as &amp;#039;&amp;#039;&amp;#039;pgi&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs use: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;file &lt;/del&gt;to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the ROMS/External directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses several ASCII input &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;files &lt;/ins&gt;to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;ROMS/External&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; &lt;/ins&gt;directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;metadata &lt;/ins&gt;parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&#039;&#039;&#039;NtileI&#039;&#039;&#039;, &#039;&#039;&#039;NtileJ&#039;&#039;&#039;) &lt;/ins&gt;I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanS&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanO&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;mpirun&amp;#039;&amp;#039;&amp;#039; -n 4 -hostfile node_file &amp;#039;&amp;#039;&amp;#039;./oceanM&amp;#039;&amp;#039;&amp;#039; ocean_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanS&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanO&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;mpirun&amp;#039;&amp;#039;&amp;#039; -n 4 -hostfile node_file &amp;#039;&amp;#039;&amp;#039;./oceanM&amp;#039;&amp;#039;&amp;#039; ocean_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2304&amp;oldid=prev</id>
		<title>Arango at 16:41, 16 June 2007</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=Talk:build_roms&amp;diff=2304&amp;oldid=prev"/>
		<updated>2007-06-16T16:41:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:41, 16 June 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make a project directory. On our Opteron cluster, I have one directory where I keep the source code: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;and another where I actually do model runs&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;So on my system, for a new test, I make a directory called&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Make a project directory. On our Opteron cluster, I have one directory where I keep the source code: &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;and another where I actually do model runs&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;So on my system, for a new test, I make a directory called&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;/home/rsignell/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Checkout the source code using &amp;#039;&amp;#039;&amp;#039;svn&amp;#039;&amp;#039;&amp;#039; (or unpack the source code if you got a tarfile or zipfile somewhere) and copy the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script (which you will find in &amp;#039;&amp;#039;&amp;#039;ROMS/Bin&amp;#039;&amp;#039;&amp;#039; sub-directory) to your project directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Checkout the source code using &amp;#039;&amp;#039;&amp;#039;svn&amp;#039;&amp;#039;&amp;#039; (or unpack the source code if you got a tarfile or zipfile somewhere) and copy the &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script (which you will find in &amp;#039;&amp;#039;&amp;#039;ROMS/Bin&amp;#039;&amp;#039;&amp;#039; sub-directory) to your project directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &#039;&#039;&#039;pgi&#039;&#039;&#039;, ifort) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the pgi compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&quot;red&quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &#039;&#039;&#039;on&#039;&#039;&#039; as well as &#039;&#039;&#039;pgi&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Edit &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; to specify: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_APPLICATION&amp;lt;/span&amp;gt;  [[LAKE_SIGNELL]]&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;br/&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;and set which compiler I want to use (e.g. &#039;&#039;&#039;pgi&#039;&#039;&#039;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;ifort&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;) and what type of executable I want (MPI, OpenMP, or Serial). Even though I use the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;pgi&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; &lt;/ins&gt;compiler on our cluster, I actually build MPI code using the [[mpif90]] script, so I set &amp;lt;span class=&quot;red&quot;&amp;gt;USE_MPIF90&amp;lt;/span&amp;gt; &#039;&#039;&#039;on&#039;&#039;&#039; as well as &#039;&#039;&#039;pgi&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs: &amp;lt;div class=&quot;box&quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;&lt;/del&gt;&amp;lt;span class=&quot;red&quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Compile. Run the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script.  If you have more than one processor on the machine you are compiling on you can use the -j option to build faster.  For example, to use 2 CPUs &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use&lt;/ins&gt;: &amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;./build.sh -j 2&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;an &lt;/del&gt;ASCII input file to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the ROMS/External directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Set up the input files for the run. ROMS uses &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;several &lt;/ins&gt;ASCII input file to specify some of the run parameters, and we use the &#039;&#039;&#039;.in&#039;&#039;&#039; extension by convention to indicate these files. For the test cases, these are found in the ROMS/External directory. So to run ROMS from our project directory, we need to copy over the right input files for the [[LAKE_SIGNELL_CASE | LAKE_SIGNELL]] case.  We also want a copy of [[varinfo.dat]], which defines NetCDF parameters. &amp;lt;div class=&quot;box&quot;&amp;gt;&#039;&#039;&#039;cp&#039;&#039;&#039; &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;~/models/roms_rutgers/trunk/ROMS/External/{*lake_signell*.in,varinfo.dat} ~/projects/test1&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;I then need to modify &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to point to the local directory to find [[varinfo.dat]], &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;floats_lake_signell.in&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;sediment_lake_signell.in&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;I can also edit &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;ocean_lake_signell.in&amp;lt;/span&amp;gt; to specify how many tiles I want to have.  If I want to run with Serial or OpenMP, I can specify the tiling however I want, but I want to run on 4 CPUs with MPI, the CPUs and number of tiles has to be the same.  I want to run on 4 CPUS with MPI, so I leave the default 2x2 tiling. &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;If you are lazy and don&#039;t want to make all these edits and just want to try it out, you can get&amp;lt;div class=&quot;box&quot;&amp;gt;http://stellwagen.er.usgs.gov/rps/share/lake_signell.tar.gz&amp;lt;/div&amp;gt;and just edit these two lines (and perhaps the compiler options) in the &amp;lt;span class=&quot;red&quot;&amp;gt;build.sh&amp;lt;/span&amp;gt; script&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_ROMS_SRC&amp;lt;/span&amp;gt;          /home/rsignell/models/roms_rutgers/trunk&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;span class=&quot;red&quot;&amp;gt;MY_PROJECT_DIR&amp;lt;/span&amp;gt;       /home/rsignell/projects/test1&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanS&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanO&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;mpirun&amp;#039;&amp;#039;&amp;#039; -n 4 -hostfile node_file &amp;#039;&amp;#039;&amp;#039;./oceanM&amp;#039;&amp;#039;&amp;#039; ocean_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Run &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanS&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (Serial)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;./oceanO&amp;#039;&amp;#039;&amp;#039; &amp;lt; ocean_lake_signell.in &amp;gt; &amp;amp; log &amp;amp;                               (OpenMP)&amp;lt;br /&amp;gt;&amp;#039;&amp;#039;&amp;#039;mpirun&amp;#039;&amp;#039;&amp;#039; -n 4 -hostfile node_file &amp;#039;&amp;#039;&amp;#039;./oceanM&amp;#039;&amp;#039;&amp;#039; ocean_lake_signell.in &amp;amp; log &amp;amp;   (MPI)&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check out the results&amp;lt;div class&amp;quot;box&amp;quot;&amp;gt;[[ncview]] &amp;#039;&amp;#039;&amp;#039;ocean_his.nc&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
</feed>