Software Archive
Read-only legacy content
17061 Discussions

RTL error on Internal READ

bdrichards
Beginner
420 Views
Consider the following:

Character*9 s1
Real*8 a

s1 = ' ' ! all blanks
read(s1,*) a ! generates RTL error in 6.1+, but not in previous ver?

Any comments?
Bill
0 Kudos
4 Replies
bdrichards
Beginner
420 Views
OOPS! The formatting of my original post seems to have gone hairwire!!?

Consider the following:
Character*9 s1
Real*8 a s1 = ' ' ! all blanks
read(s1,*) a ! generates RTL error in 6.1+, but not in previous ver?

Any comments? Bill
0 Kudos
Steven_L_Intel1
Employee
420 Views
I would expect an end-of-file error for that usage. What do you get?

Steve
0 Kudos
bdrichards
Beginner
420 Views
Yep, that's the error. Is it possible that earlier (pre6.1 or 6.0) CVF actually wrote a 0.0 to the value (without our versioning control in place I can't verify any earlier builds)? Perhaps I am hallucinating...

On another topic, my posts seem to lose their simple carriage returns and wrap in line lengths that mess up the code samples. What am I doing wrong (I tried shift+return, also)?

Bill
0 Kudos
Steven_L_Intel1
Employee
420 Views
I don't think this behavior has changed at all.

As for posting code - you have to bracket in
 ... 
The code used to process the entries throws away line breaks inside of "paragraphs", and I'm told that this is VERY difficult to change. (A commercial package is being used.)

Steve
0 Kudos
Reply