On 2007-10-02 12:48+0100 Andrew Ross wrote:

>
> F95 example 28 now compiles and works. Visually I get identical
> results to the other languages. ifort produces identical files.
> gfortran 4.1 does not quite produce identical files. When plotting the
> string "The future of our civilization depends on software freedom."
> all the spaces get optimised away and nothing is plotted. For other
> languages (e.g. C, f77) a space is plotted. Visually this makes no
> difference, but it does mean the files are not identical. I assume
> this is something to do with the implementation of transfer in
> gfortran. It would be interesting to see if other people suffer the
> same problem.
>
> I did uncover a bug in sfstubs.f90 which meant that plbox3 did not
> work as expected with f95. This showed up in example 11 and 28. Now
> fixed.

Hi Andrew:

Thanks for your recent f95 work.  I also ran into the problem of blanks
turning into no-ops for the f77 bindings and example 28. I fixed it with an
islen change so that trailing blank trimming occurs as before unless the
string is all blanks in which case a null-terminated string with a single
blank is produced rather than the empty null-terminated string that was
produced before.

I have just made two commits to bindings/f95 to make those bindings
compatible with my recent f77 changes (including the islen change).  I don't
have access to Fortran 9x so please check that these changes (a) don't break
anything and (b) solve the problem of blanks turning into no-ops for example
28 that you have just described.

With my recent bindings changes do all the f95 examples now produce
identical results to the C examples?  For the f77 examples I had to do some
blank tweaking (e.g., change some ' ' strings to '') to make that happen.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to