Topic: Mac Computer: open Project and modules
Computer: Mac M4
OS: Sequoia 15.5
SimplyFortran: V3.40 Build 4427
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.
These days, when I double click the .prj file it opens to a blank window named ".... Fortran - Untitled (target)" instead of ".... Fortran - MyProject (target)"
I can navigate to MyProject.prj via the Project/Open Project ... menu. But I'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?
Double clicking the .f95 file first, just opens it in the BBedit (text editor) app.
I'll go back to square 1, and build the "Hello World" demo again. Maybe I'm remembering it wrong
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 "column", function and procedure code (just copy/paste?) into the module and call the procedures from the main .f95 file?
It (from Chapman's book below), like I have add, inside the module folder, a .f95 file that starts something like:
Module my_routines
Contains
Subrountine xxx (a,b,c)
....
End Subroutine xxx
Function yyy (a,b,c)
....
End Function
End module my_routines
I'm using Fortran 90/95 for Scientists and Engineeers by S. J. Chapman as a reference and have other books, all with "Modern Fortran" in their titles.