Andrew Ross wrote:
(1) Normally, I believe it should be the user's responsibility to set the
flags appropriate for their compiler.
So what happens if you simply use
FC='ifort -assume byterecl'
?
If that works for all examples without messing them up, then perhaps we
should recommend that ifort option in the wiki along with an explanation
that example 20 requires byte-length records. That seems simpler to me than
detecting ifort and fooling around with a special compile option for example
20 for that compiler. However, I don't feel strongly about it so do what
you think is best.
I think you are probably right. The other option is to try and come up
with a way of reading in lena.pgm which is not dependent on the record
length.
The problem with the PGM P5 format from the point of view of Fortran is,
that
it is a strange mixture of a formatted file (all the header lines) and a
binary file
(the actual image data). Also, the file is not closed with an
end-of-line character
sequence. All these details make it very awkward to read it properly -
from a
Fortran program.
Having said that, I think it _is_ possible to adapt the current program
to read
it even if the record length for direct access files is measured in
words rather
than bytes. The problem is merely a matter of getting the logic right
(detect
the record length in terms of bytes, read the records and extract the
individual
bytes).
Regards,
Arjen
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel