Implicit Variables in FORTRAN

  • Fortran
  • Thread starter Poop-Loops
  • Start date
686
0

Main Question or Discussion Point

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.
 

Answers and Replies

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.
 
686
0
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!
 

Related Threads for: Implicit Variables in FORTRAN

  • Last Post
Replies
4
Views
2K
Replies
10
Views
6K
Replies
9
Views
2K
Replies
2
Views
3K
Replies
3
Views
4K
Replies
2
Views
5K
Top