Hello,

here is an update on the FORTRAN 77 issue:
The proposed solution (a compiler directive) does not work with the
current gfortran compiler (issue 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47030).

I can think of several workarounds:
- Expand the argument list of plcon1 with the array tr
   This breaks existing code though
- Use a separate subroutine to fill the array in the COMMON block
- Use a MODULE despite the fact that we are talking about FORTRAN 77
   - all maintained Fortran compilers that I know of are at least
   conforming to the Fortran 90 standard that introduced modules.
- Put the implementation of plcon1 in the same - static - library
   as plparseopts (which had a very similar issue)

The second solution is probably the easiest for us developers, the last
the most convenient for us users.

Regards,

Arjen


On 2010-12-21 09:36, Arjen Markus wrote:
> Hello all,
> 
> On 2010-12-20 14:31, Arjen Markus wrote:
>> Hello all,
>>
>> On 2010-12-20 10:00, Arjen Markus wrote:
>>
>>> As for my test results with F77 example 9: it turns out that on the
>>> DLL side the array "tr" as stored in COMMON block /plplot/ is completely
>>> zero. That means the transformed coordinates are (0,0) for all points.
>>> The question _why_ it turns out to be zero is intriguing, but likely
>>> a nasty problem with data in DLLs on Windows. I know a workaround for
>>> this (an extra subroutine to fill the array), but I want to check that
>>> this is indeed the cause first.
>>>
>>
>> I can confirm that this is an issue on Windows (for the F90 bindings we
>> use a different approach). I have posed a question about it on the
>> gfortran mailing list.
>>
> 
> I got a suggestion for this problem, but it did not work the way it
> was supposed to. I will keep looking.
> 
> Regards,
> 
> Arjen
> 
 

DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.





------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to