Implicit Variables in FORTRAN

  • Fortran
  • Thread starter Poop-Loops
  • Start date
  • #1
705
0
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

  • #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.
 
  • #3
705
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 on Implicit Variables in FORTRAN

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