Topic: How do I structure the Progress Bar example
What do I need to do to make the Progress bar example work?
I tried the Main Program code shown in the example here: https://approximatrix.wordpress.com/201 … pgraphics/
That main code throw an error because of a missing "progress.mod"
I saw the code above the Main Program - code for the progress bar broken up by descriptions. In another example, the one for creating a graph, even though coding parts were broken up by description, at the end, the whole exampled could be copied and run (on the Mac). But that appears to not be the case with Progress Bar.
I looked at the code above the main program and didn't see any exact "progress" label. Was the code above just saved as a .mod file and named "progress". If so, I must have missed any reference to that.
It looks like I could copy the progress bar code lines out from the descriptions but the last line is just:
call bar(5, 25, progress_completed+5, 50)
with no sort of end/return or termination line under it.
Do I copy everything from:
type progresswindow
to:
call bar(5, 25, progress_completed+5, 50)
and save that in a txt file named progress.mod
Then add Progress.mod to the project file list?
Just trying to get some solid ground on the PC side. I didn't see anything about "mod" in the documentation list. I do have a Fortran 90/95 and an older Fortran 77 reference coming - but I'm sure those deal the language itself. I'm looking for info on the setup/organization of the SF environment.
My world is like ... This is a Main Program, it's saved in a file what has to have a .f90 (.etc) extension and is added to the Project outline. This is a Subroutine. It begins and ends like this .. It can be embedded in the main program - best practices are at the beginning but could be anywhere - or it can be saved in a module (text file whose name ends .mod) and that text file is added to the files under the project outline. Is there some SF documentation that explains things like that?
Thinking back decades, I might have worked in some environments where modules (collections of subroutines) could undergo some kind of "pre-compile" so they were just linked in and didn't add to the compile time of the main program. Maybe it was another language.