Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Implicit Variables in FORTRAN

  1. Mar 25, 2008 #1
    I got a new project from my professor to calculate the form factor of the cavity for his particle detector thing. He told me to get some code from a colleague, decipher it, and use it for the new cavity.

    The code is in FORTRAN. I've had some programming experience, so it's not so bad, but this guy wrote the code for himself, so it's not easy to decipher. The main problem I am having is he is using a lot of implicit variable declarations. The only thing I've been able to find is that if it starts with "i" through "n" it's an integer. But I can't find a list anywhere online.

    I was hoping one of you could point me in the right direction.
     
  2. jcsd
  3. Mar 26, 2008 #2
    Untyped variables are implicitly REAL for variables with names starting with characters "A-H" or "O-Z" and INTEGER for variables with names starting with characters "I - N".

    This may, of course, be overriden by the use of the IMPLICIT statement.
     
  4. Mar 27, 2008 #3
    That's it? Phew, thought it would be a lot more complicated.

    Yeah, I'm getting a lot of "i"this and "i"that without any indication of what is going on. =/

    Thanks for your help!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Implicit Variables in FORTRAN
Loading...