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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Old Fortran Code - Need to Figure Out What This Means 3

Status
Not open for further replies.

jamez05

Programmer
Jul 29, 2005
130
US
Have some old Fortran (believe its 77) that I'm trying to
convert. Its working, except the old skips the lines of code that have a "D" in front of it, like a comment. I'm not sure why it does this. Does anyone know if "D" is some sort of directive that tells the compiler not to compile or does anyone have any insight. Below is some code. Notice the "D" on the far left:
Code:
  X= X+SSEMES('RN{0}(R)R '    ,'Ring -N<:' ,0.007 , 5,1,L)
D X= X+SSEMES('RN{/}=R ' ,'-N=:',0.014 ,44,1,L) ! (cf. #4)
D X= X+SSEMES('RN{0}=R ' ,'RingN=:',007 ,45,1,L) ! (cf. #5)
11111
 
Figured it out, the D is the Debug processing directive. It only runs the lines prefixed with "D" when in debug mode.
 
Any non numeric character in column 1 forces the line to be a comment. D must be a special feature of your compiler.
 
Yes, this is a feature of a special compiler. I do not know if this was the compiler running on a thing called DEC PDP 11 or an old Lahey F77 compiler. I think its the latter but I am not so sure.

Norbert
 
That's going back a bit. DEC was taken over by Compaq which was then taken over by HP.
 
Thanks for the history, interesting to track this code's origins (barely any documentation, just piecing it together).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top