- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greeetings:
I have a mix of CVF 6 and Intel 9.1 FORTRAN codes. Seems CVF put out numbers with e+## format while the newer Intel puts out e+###. So reading old file in new code is no issue but not all codes are ported yet.
Is there a way to have Intel 9.1 FORTRAN put out e+## range?
Regards
Carl
I have a mix of CVF 6 and Intel 9.1 FORTRAN codes. Seems CVF put out numbers with e+## format while the newer Intel puts out e+###. So reading old file in new code is no issue but not all codes are ported yet.
Is there a way to have Intel 9.1 FORTRAN put out e+## range?
Regards
Carl
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please supply a test program that shows this behavior. I don't know of any reason why simply changing compilers should change the formatted output - especially as you're saying that a character is being dropped.
Also, I'll comment that 9.1 is quite old at this point.
Also, I'll comment that 9.1 is quite old at this point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Please supply a test program that shows this behavior. I don't know of any reason why simply changing compilers should change the formatted output - especially as you're saying that a character is being dropped.
Also, I'll comment that 9.1 is quite old at this point.
Also, I'll comment that 9.1 is quite old at this point.
Better than that I will solve my own problem ....
Seems the E format will take on optional format character E#so E15.6E2 will do the trick .... so the last digit sets the range of values.
As an alternative a "simple" sed script could be use to change the files ....
#!/bin/bash
cp $1 $1.bak
cat $1.bak | sed -e "s/([0-9.]*e[+-])0([0-9][0-9])/12 /g" >$1
Hope this helps someone else....
Regards
Carl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am concerned about the behavior change, which should not be there. Please show me an example that illustrates the difference.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page