<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — The order of compiliation]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=250&amp;type=atom" />
	<updated>2013-09-06T18:37:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=250</id>
		<entry>
			<title type="html"><![CDATA[Re: The order of compiliation]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=978#p978" />
			<content type="html"><![CDATA[<p>Files have to be compiled in order of a &quot;topological&quot; sort, taking into account all of the dependencies between files. With Fortran these come about due to:</p><p>Include files<br />modules<br />submodules</p><p>Simply Fortran should work out the order automatically for files containing include files and modules. It doesn&#039;t work with sub modules but these aren&#039;t supported in gfortran yet in any case.</p>]]></content>
			<author>
				<name><![CDATA[davidb]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3463</uri>
			</author>
			<updated>2013-09-06T18:37:56Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=978#p978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The order of compiliation]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=974#p974" />
			<content type="html"><![CDATA[<p>Please see also my post under a new thread, &#039;Order of library search&#039;<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-09-06T17:06:55Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=974#p974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The order of compiliation]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=972#p972" />
			<content type="html"><![CDATA[<p>The paper most likely gives the order of compilation due to the interdependence of modules contained within the Fortran source files.&nbsp; In other words, <em>common_par.f90</em> uses a module provided by <em>nrtype.f90</em> (possibly, not necessarily, but we&#039;ll assume that for now), so <em>nrtype.f90</em> must be compiled first to generate the module file that <em>common_par.f90</em> relies on.&nbsp; Simply Fortran, however, automatically sorts out compilation order based on these module dependencies.&nbsp; I would suggest adding all the files listed into a project and attempting to build it as-is.&nbsp; It theoretically should &quot;just work.&quot; This automatic calculation of compilation order is one of the first and most important features of Simply Fortran.</p><p>If it doesn&#039;t work, post back here, and we can walk through the steps of creating a makefile by hand.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-09-06T16:43:50Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=972#p972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The order of compiliation]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=971#p971" />
			<content type="html"><![CDATA[<p>I want to run a seris of codes to replicate results of a concerning paper.</p><p>The author says as below:</p><p>-----------------------------------------------------------------------------------------------------------<br />Programs should be compiled in the following order:</p><p>nrtype.f90 common_par.f90 storedata.f90 nrutil.f90 grid_generate.f90 sub_timeseries.f90<br />sub_optim.f90 eulereq2.f90 externalit.f90 plannervf.F90 interp.f90 process.f90<br />simulation.f90 bindingc.f90 valuef.f90 tax.f90 tauchenhussey.f brent.f90 mnbrak.f90<br />zbrent.f90 zbrac.f90 taxplan.f90 main.f90<br />-----------------------------------------------------------------------------------------------------------</p><p>How can I specify the order of compiliation in SimplyFortran?</p>]]></content>
			<author>
				<name><![CDATA[jin]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3439</uri>
			</author>
			<updated>2013-09-06T16:21:50Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=971#p971</id>
		</entry>
</feed>
