Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. garynewport2

    Continuation lines

    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...
  2. garynewport2

    I have a file of almost 5000 lines

    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...
  3. garynewport2

    Allowing for an input file

    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...
  4. garynewport2

    Allowing for an input file

    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...
  5. garynewport2

    Allowing for an input file

    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...
  6. garynewport2

    I have a file of almost 5000 lines

    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...
  7. garynewport2

    save command

    So, the placing of the save command has no relationship to the variables being set to static? Wow! Thank you. :)
  8. garynewport2

    I have a file of almost 5000 lines

    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...
  9. garynewport2

    save command

    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/...

Part and Inventory Search

Back
Top