Does Fortran Accept Continuation in Column 6
- #1
"illegal continuation card ignored" on every line of code that is not a comment... HELP...
program
call ceps()
end
function ceps()
real ceps
real eps1
c
ceps=1.0e0
3 eps1=1.0e0+ceps/2.0e0
if(eps1.eq.1.0e0) return
ceps=ceps/2.0e0
goto 3
end
Thanks for any help
- #2
program
call ceps()
end
function ceps()
real :: ceps
real :: eps1
c #<---- Whats this?
ceps=1.0e0
3 eps1=1.0e0+ceps/2.0e0
if(eps1.eq.1.0e0) return
ceps=ceps/2.0e0
goto 3
end
Also try putting your function before your end statement, but also put a STOP statement before the function.
Ryan
- #3
i have to use F77, but the big problem is what the heck is "illegal continuation card"?????
- #4
Ryan
- #5
Last but not least, you will probably want a write statement to give some output there ace.
Night man, and good luck.
Ryan
- #6
There is a column (I think #6) that is to be kept blank (space) unless the code is an extension of the previous line.
With Fortran, I believe that all code starts in Column 7.
Reference numbers go in Cols 1-5.
Cols 73-80 can also be used for comments.
Do not take this as gospel, however I made my living in Fortran from 1970-1994.
- #7
<< didn't help
i have to use F77, but the big problem is what the heck is "illegal continuation card"????? >>
i did fortrash back in the early 70's.
at that time you punched your program into thin paper cards that measured about 3"x8" using a typewriter-like machine
(one program line per card). then you submitted your deck of cards to the God-like creatures who protected the computer from vermin like you. then, anywhere from 30 minutes to 24 hours later you got your deck back along with a hardcopy of results of the compilation (or program execution if you were lucky).
having to iterate this process made you care about getting it right before you started typing.
- #8
You must be getting old. You forgot about the lines of 2-10 people waiting to use the keypunch machines.
Remember number the cards so you could try to put the deck back together when you played 52 card pickup:disgust:
- Jan 30, 2001
- 15,392
- 78
- 91
- #9
- #10
<< Spamela
You must be getting old. You forgot about the lines of 2-10 people waiting to use the keypunch machines.
Remember number the cards so you could try to put the deck back together when you played 52 card pickup:disgust:
>>me, old? i worked with a guy who told me about an optimization technique he used with rotating drums (used for storage). you commanded the drum to go somewhere, then your program went off & did something else while waiting for the spot on the drum to get under the read/write head, then you read/wrote your data - no stinking operating system to slow things down.
i worked with another guy who had a project on punched cards codenamed "nixon." one day he dropped his huge deck, then booted it all over the room in his attempt to grab it. someone commented that "You won't have Nixon to kick around anymore."
i forgot to mention the use & value of rubber bands for one's deck.
- Advertising
- Cookies Policies
- Privacy
- Term & Conditions
- About us
- This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Source: https://forums.anandtech.com/threads/help-with-fortran.704639/
Post a Comment for "Does Fortran Accept Continuation in Column 6"