<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Mac Computer:  open Project and modules]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=985</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=985&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Mac Computer:  open Project and modules.]]></description>
		<lastBuildDate>Wed, 25 Jun 2025 22:29:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Mac Computer:  open Project and modules]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4463#p4463</link>
			<description><![CDATA[<p>Just a thought - after fixing that .prj file loading <img src="http://forums.approximatrix.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> maybe add an example on the SimplyFortran page we see when SF is launched, under New Projects, showing a structure where procedures (subroutines) and functions are outboarded to a module file - so we just have to open the file (under Project Outline) and change the routines to our liking.</p><p>From what you said, it looks like I&#039;d add a new .f95 file under Project Outline and that file as a certain structure, i.e. naming convention. In the example I&#039;m thinking of, that file would already be there containing a sample procedure and function that is called from the program (the second .f95 file under Project Outline) ... something like that.</p>]]></description>
			<author><![CDATA[null@example.com (designer)]]></author>
			<pubDate>Wed, 25 Jun 2025 22:29:21 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4463#p4463</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mac Computer:  open Project and modules]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4461#p4461</link>
			<description><![CDATA[<p>Jeff, thank you for your comprehensive reply. You saved me a lot of &quot;discovery&quot; time because my next step would have been trying to put something in the Module folder. Also, I wasn&#039;t going crazy thinking that double clicking the .prj file should have loaded the .f95 files in the project folder (that contains the .prj file and others).</p><p>It&#039;s too bad Apple creates so much trouble for your support and I appreciate the effort you put in to keep compatibility with that platform. I miss the Graphical interface that was available with early &quot;fortran-isque&quot; programs like ZBasic and FutureBasic. But I can&nbsp; use SimplyFortran prototype routines/algorithms I can then move to other apps.</p><p>The programming world embraced OOP design and of course one can come up with scenarios where it is appropriate. But for me, for what I do (my hobby programming), it adds so much overhead and complexity. If I were still in the biz - a forensic programmer who is just tossed the source code, no documentation, sometime even no description of what it&#039;s supposed to do, and tasked with making it work - OOP is a GodSent of additional billable hours because with encapsulation, the problem code could be anywhere.</p><p>SimplyFortran is, for me, the simplest, and quickest, least overhead, way to test/demonstrate a solution to a programming task.</p>]]></description>
			<author><![CDATA[null@example.com (designer)]]></author>
			<pubDate>Wed, 25 Jun 2025 16:12:48 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4461#p4461</guid>
		</item>
		<item>
			<title><![CDATA[Re: Mac Computer:  open Project and modules]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4458#p4458</link>
			<description><![CDATA[<p>There are two separate questions in this post, so I&#039;ll address them separately:</p><p>First, in regards to file association in macOS, it appears that some component of project opening has broken.&nbsp; macOS is quite a problematic platform to maintain since Apple has no interest in backwards compatibility whatsoever, so I&#039;m guessing something just broke with project loading.&nbsp; I&#039;ll look into fixing this quickly.</p><p>Second, modules, from the developer&#039;s viewpoint, are Fortran source files that contain the <strong>module</strong> construct, nothing more.&nbsp; These source files can be stored anywhere and just added to your project.&nbsp; They should be treated like any other Fortran source file, including using the <em>f90</em>, <em>f95</em>, or any other appropriate Fortran source file extension.&nbsp; You can even use module constructs inside fixed-format Fortran with the <em>f</em> extension if you want.</p><p>The <em>modules</em> subdirectory that Simply Fortran creates, on the other hand, is purely for storing compiler output.&nbsp; You should not place any source files inside that directory, nor should anyone be concerned with what files exist in that directory.&nbsp; </p><p>When you compile a Fortran source file containing a module, let&#039;s say a file named <em>mathmod.f90</em> that contains a module named <strong>mymath</strong>, the compiler will generate a file named <em>mymath.mod</em> inside the <em>modules</em> subdirectory that Simply Fortran created.&nbsp; This file is a binary file that is not human readable and not portable to other compilers (or sometimes even to the same compiler but different version).&nbsp; The existence of <em>mymath.mod</em> is necessary for other compilation steps, but it shouldn&#039;t be touched by the user.&nbsp; </p><p>In short, you should ignore Simply Fortran&#039;s <em>modules</em> subdirectory, and you should not put anything inside it.&nbsp; It isn&#039;t meant for the user, much like the <em>build</em> subdirectory.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 25 Jun 2025 14:42:06 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4458#p4458</guid>
		</item>
		<item>
			<title><![CDATA[Mac Computer:  open Project and modules]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4457#p4457</link>
			<description><![CDATA[<p>Computer: Mac M4<br />OS: Sequoia 15.5<br />SimplyFortran: V3.40 Build 4427</p><p>I could swear that in the past I could double click on a .prj file and it would open and include the .f95 source code file located in same folder. That folder also contains a Makefile document, a modules folder, and a Target document.</p><p>These days, when I double click the .prj file it opens to a blank window named &quot;.... Fortran - Untitled (target)&quot; instead of &quot;.... Fortran - MyProject (target)&quot;</p><p>I can navigate to MyProject.prj via the Project/Open Project ... menu. But I&#039;d expected, because I started by double clicking on MyProject.prj, that it would open that along with my .f95 source code file in the same folder. Am I mistaken about that?</p><p>Double clicking the .f95 file first, just opens it in the BBedit (text editor) app.</p><p>I&#039;ll go back to square 1, and build the &quot;Hello World&quot; demo again. Maybe I&#039;m remembering it wrong</p><p>I want to move working code out of the main program and into a Module. Is there and example of that structure? The basic question is, how do I get the Module folder in the Project Outline &quot;column&quot;, function and procedure code (just copy/paste?) into the module and call the procedures from the main .f95 file?</p><p>It (from Chapman&#039;s book below), like I have add, inside the module folder, a .f95 file that starts something like:<br />Module my_routines<br />Contains<br />&nbsp; &nbsp;Subrountine xxx (a,b,c)<br />&nbsp; &nbsp;....<br />&nbsp; &nbsp;End Subroutine xxx</p><p>&nbsp; &nbsp;Function yyy (a,b,c)<br />&nbsp; &nbsp;....<br />&nbsp; &nbsp;End Function <br />End module my_routines</p><br /><p>I&#039;m using Fortran 90/95 for Scientists and Engineeers by S. J. Chapman as a reference and have other books, all with &quot;Modern Fortran&quot; in their titles.</p>]]></description>
			<author><![CDATA[null@example.com (designer)]]></author>
			<pubDate>Tue, 24 Jun 2025 21:56:49 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4457#p4457</guid>
		</item>
	</channel>
</rss>
