<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Having problems with the logic of SF]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=167&amp;type=atom" />
	<updated>2013-03-21T19:51:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=167</id>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=667#p667" />
			<content type="html"><![CDATA[<p>Jeff -</p><p>Thanks...I&#039;ll stick to one PRJ for each FOR I write.&nbsp; Simple logic, for a simple mind!!</p><p>Kurt</p>]]></content>
			<author>
				<name><![CDATA[kschrader]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=345</uri>
			</author>
			<updated>2013-03-21T19:51:17Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=667#p667</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=662#p662" />
			<content type="html"><![CDATA[<p>Kurt,</p><p>You can &quot;Disable&quot; files by right-clicking on a file in your project tree and selecting &quot;Disable File.&quot;&nbsp; It should now appear with a red X through the icon in the tree.&nbsp; Disabling the file will instruct Simply Fortran to ignore it during compilation procedures.</p><p>You can of course have more than one Fortran file in a project because most Fortran projects will be composed of multiple source files.&nbsp; The real restriction will be that there can only be one &quot;program&quot; in a project.&nbsp; If two files both have &quot;program&quot; definitions, compilation will fail (unless one of the files containing a program definition is disabled, as explained above).&nbsp; However, if one has a program and another has a collection of subroutines, functions, or modules, everything will be fine (with certain restrictions, of course).</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-03-21T14:16:17Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=662#p662</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=661#p661" />
			<content type="html"><![CDATA[<p>To be more specific, I&#039;d like to attach an image but don&#039;t see how to do that...I&#039;ll use ASCII code to illustrate.&nbsp; I have the PRJ file open and there are two files under the project.&nbsp; In actuality, these two files are separate, independent FOR files....I currently have separate PRJ files for them.&nbsp; But for the purposes of my questions, I put both files in the same project.&nbsp; Can I run the top FOR file without the second FOR being used?&nbsp; Or just the fact that both FOR files are shown together, does SF assume they&#039;re connected?</p><p>D-1Deadband (project.exe)<br />&nbsp; |<br />&nbsp; ----D-1Deadband.for<br />&nbsp; |<br />&nbsp; ----D-1PeakP.for</p><p>Kurt</p>]]></content>
			<author>
				<name><![CDATA[kschrader]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=345</uri>
			</author>
			<updated>2013-03-21T12:04:11Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=661#p661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=657#p657" />
			<content type="html"><![CDATA[<p>1. open a SF blank page.<br />2. Change the name of &#039;Untitled(Project.exe)&#039; to anything you like.<br />3. Save the project with *.prj.<br />4. add folder or file to your project by right click on &#039;Untitled(Project.exe) or your new name.<br />5. when adding folder, there is no need to have extention.<br />6. while creating file, i normally use the extention of f90. for example; *.f90.<br />7. right down your codes in the proper file.<br />8. build the project.<br />9. run it.<br />10. after any change through you codes, remember you should save and build it again.</p>]]></content>
			<author>
				<name><![CDATA[Curtin183]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3405</uri>
			</author>
			<updated>2013-03-21T03:09:13Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=657#p657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=656#p656" />
			<content type="html"><![CDATA[<p>You can put all your source code in one source file, or have a set of source files, one for each subroutine, OR you can do a bit of both.&nbsp; SF reads them all and looks inside the code to see what it does and where it belongs, then works out how to compile and link it all together.</p><p>You can also add binary files to a project in exactly the same way as you add a source file.&nbsp; If it is, for example, a fully compiled and bundled library, then SF sees that it is, and doesn&#039;t try to compile it, but links from it, pulling in only the routines actually needed from it.&nbsp; I <em>think</em> this is what happens, but Jeff will no doubt correct me if necessary.<br />---<br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-03-20T18:18:41Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=656#p656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=655#p655" />
			<content type="html"><![CDATA[<p>John -</p><p>That&#039;s what I finally figured out...open a PRJ file first.&nbsp; On the left side pane, there is a source file associated with the project, so I click on that (or double-click, not sure) and the editor opens up.&nbsp; Then I&#039;m off and running.</p><p>I&#039;m used to dealing with one FOR file at a time for any given engineering &quot;project&quot;.&nbsp; Of course I write multiple FOR files that might be associated with one of my engineering projects, but I don&#039;t think of the different source files as part of a SF project.</p><p>Let me ask this...let&#039;s say I have an SF PRJ &quot;wingstress&quot;.&nbsp; Can I have multiple source files attached to this project as shown in the left-hand pane?&nbsp; If I open one of those source files into the editor, make some changes, then save-build-run, will it only run that one source file and leave all the others alone?&nbsp; This may be what&#039;s confusing me or I&#039;m not understanding.&nbsp; Currently, for each source file, I have its own PRJ file.</p><p>Thanks...Kurt</p>]]></content>
			<author>
				<name><![CDATA[kschrader]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=345</uri>
			</author>
			<updated>2013-03-20T14:13:23Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=655#p655</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=632#p632" />
			<content type="html"><![CDATA[<p>To edit source code, compile, link and run, you have to open a PROJECT not just a Fortran source file.<br />A simple project, or even a complex one with everything in one long source file, can contain just the one source file.<br />In more advanced (or better organised) projects, there will typically be a number of separate source files, plus library files.&nbsp; All of these are added to the project in the same way.</p><p>Any file can be opened for editing without adding it to the project.</p><p>When you launch SF by double-clicking on a .FOR file, invoking SF and having SF open the file and display it, you are opening the file in the SF <span class="bbu">editor</span>, not opening it as part of a SF project.&nbsp; To open a SF project ready to compile or run, double click a .PRJ file.</p><p>You can also, from within SF, open source files in other projects, to view them, copy stuff from them or amend them, all without adding to the current project.&nbsp; You can open data files and output files.</p><p>You can create a new file in the SF editor, and save it.&nbsp; This is very useful for creating data input files, for example.<br />A file doesn&#039;t become part of the project until you say so.</p><p>When you want a source file to be part of the project, you have to say so !</p><p>NB don&#039;t forget to use the Options menu to set some project options.</p><p>Recommended:&nbsp; Create a project, not by double clicking a .FOR file in Windows, but by opening SF and choosing one of the startup-screen options, then adding a source file.&nbsp; This way, you&#039;ll get all the right default settings in options.<br />-- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-03-14T18:07:28Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=632#p632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=631#p631" />
			<content type="html"><![CDATA[<p>Well, I got things to work.&nbsp; I right clicked on the project name (D-1Deadband) and added a file which was the original .FOR file.&nbsp; I have been able to build and run the program.</p><p>I really don&#039;t understand this logic...I double-click on my FOR file, SF opens, and the code shows in the right pane.&nbsp; Then I have to add the file...again...to the project.</p><p>Just not intuitive for me...Kurt</p>]]></content>
			<author>
				<name><![CDATA[kschrader]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=345</uri>
			</author>
			<updated>2013-03-14T15:29:03Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=631#p631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=630#p630" />
			<content type="html"><![CDATA[<p>I believe so.&nbsp; When I double-click on my .FOR file, SF runs and the project outline shows &quot;Untitled (project exe)&quot;.&nbsp; Strange in that my source code shows in the pane to the right.&nbsp; I then right-click on the untitled project, go to File and Open Project...I select &quot;D-1Deadband.PRJ&quot; and then &quot;Untitled&quot; changes to &quot;D-1Deadband (project.exe)&quot;.&nbsp; But if I try and perform a makefile, I continue to get the makefile construction error.</p><p>Kurt</p>]]></content>
			<author>
				<name><![CDATA[kschrader]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=345</uri>
			</author>
			<updated>2013-03-14T14:59:24Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=630#p630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=629#p629" />
			<content type="html"><![CDATA[<p>Have you &#039;added&#039; your source file to the project?<br />RIGHT-CLICK the project name in project outline.</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2013-03-14T14:30:12Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=629#p629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Having problems with the logic of SF]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=628#p628" />
			<content type="html"><![CDATA[<p>It&#039;s been a while...I only do some programs every 6 months or so.&nbsp; But I can&#039;t seem to understand the logical steps in creating the project, building, and running my program.&nbsp; I have written my code, I&#039;ve saved the code to a file with a FOR extension, I&#039;ve created a project with a PRJ extension.&nbsp; But when I try and generate a Makefile or try and Build it, I get a &quot;Make Construction Error&quot;.&nbsp; I don&#039;t see a way to upload an screen shot.</p><p>Since I come back to SF so infrequently, I can&#039;t seem to figure out what the basic steps are anymore.&nbsp; For some reason, it&#039;s just not intuitive to me.</p><p>Thanks for any help...Kurt</p>]]></content>
			<author>
				<name><![CDATA[kschrader]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=345</uri>
			</author>
			<updated>2013-03-14T14:23:59Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=628#p628</id>
		</entry>
</feed>
