<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Disenable MPI feature]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=787&amp;type=atom" />
	<updated>2020-10-23T14:26:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=787</id>
		<entry>
			<title type="html"><![CDATA[Re: Disenable MPI feature]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3634#p3634" />
			<content type="html"><![CDATA[<p>Martin,</p><p>My guess, without seeing the code, is that you can disable MPI by defining a preprocessor macro, <em>MODE</em> to be <em>SEQ</em>.&nbsp; After you re-enable &quot;Always regenerate makefile,&quot; try the following:</p><p>1. In Project Options under &quot;Fortran,&quot; check the box &quot;Enable C Preprocessor.&quot;</p><p>2. In Project Options under &quot;Compiler Flags,&quot; add the following to the &quot;Fortran&quot; box:</p><div class="codebox"><pre><code>-DMODE=SEQ</code></pre></div><p>3. Select Ok, select &quot;Clean&quot; from the Build menu, and try building again.</p><p>It may work, but there is also the possibility that you might have to look at the code in more detail.&nbsp; If you do a text search for:</p><div class="codebox"><pre><code>      INCLUDE &#039;mpif.h&#039;</code></pre></div><p>across the entire project, you can see everywhere the file is included.&nbsp; Then you might be able to determine how the code decides to include the MPI interface.&nbsp; You can also look at the original makefile that quite possibly excludes certain files from the build if that flag is set.&nbsp; My suggestion is only a guess without seeing any of the code.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-10-23T14:26:58Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3634#p3634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Disenable MPI feature]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3633#p3633" />
			<content type="html"><![CDATA[<p>Hi all, </p><p>I have been given a code, that includes the option of having it compiled for parellel computing (MPI), which is&nbsp; unfortunately selected by standard. The compilation of this standard option doesnt work as the compiler is looking for an mpif.h file that it cant find. For me, it would be totally sufficient to run it sequentially and unselect the MPI option. </p><p>I am told that this is possible by specifying in the Makefile &quot;MODE=SEQ&quot;. But how can I specify a custom makefile? I have unticked the option &quot;Always Renegerate Makefile&quot; under&nbsp; &quot;Project Options/Make Options&quot; and just added &quot;Mode=SEQ&quot; in the Makefile created by SF in the preceding compilation attempt. But this doesnt do the trick. </p><p>Alternatively, is there a way to tell the compiler to use the &quot;MODE=SEQ&quot; option without fiddling with the makefile? </p><p>Thanks for any help! <br />Martin</p>]]></content>
			<author>
				<name><![CDATA[JulesVerne]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3931</uri>
			</author>
			<updated>2020-10-22T10:29:53Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3633#p3633</id>
		</entry>
</feed>
