I have the following line of code...
write(6,201) i, TIME, DTIME, CorM, CorR, CorL, accL + CorL, fluxM, corM / solmass
Due to it's length (and as an experiment in the use of continuation lines to confirm my understanding) I tried to spread this over two lines.
I have tried this...
Resurrecting this one because I am exploring the use of parma.h and xvar.h further.
These two files contain definitions of a set of variables and common names for a group of variables; including arrays (1 and 2 dimensional).
Both files are called repeatedly throughout the one file, yet in each...
Yes, sorry. I have tried running it on both systems. This particular issue arose on my Windows system, and I incorrectly connected the failed attempt on both as the same cause - evidence of a failing memory.
The Mac issue was not a failure of code but of what I got out the other side of the...
It turns out that my choice of command line operations (PowerShell) is the cause; it reserves < for potential future usage.
If I had stuck to the good old command prompt, I would never have encountered the issue.
It also transpires that I probably don’t need to use the program anyway. It...
I have a Fortran program that allows an input file to be defined on execution, as well as an output file...
.extracks <filein.lst >fileout.trk
I am running this on my Mac and on a Windows system.
The output part (>) works fine but I cannot use the input declaration (<).
How do I do this on...
Thank you, I was aware of the purpose of the contents and you are correct, it contains a series of variables required across the program. :)
My question is that in other languages you can include library files in the same way and the library contents are then available across the whole code...
I have a file of almost 5000 lines of code, made up of a series of subroutines.
I note that almost all the subroutines have the include 'parm.h' instruction. I can see the need of this between files but is this required in each subroutine contained within the same file?
The very first line of...
Hi
I am new to Fortran (but not programming) and understand that the save command causes the variables of a subroutine to become static prior to an end or return statement but I have this in the code I have received:
include 'parm.h'
include 'xvar.h'
data ifirst/0/...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.