comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » COMMON block question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: common block question [message #75905 is a reply to message #23576] Fri, 15 April 2011 09:13 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Paulo Penteado wrote:
> On Apr 15, 7:02 am, geoff <oxfordenergyservi...@googlemail.com> wrote:
>> Thanks for all your above comments. One of my issues is that I may
>> have to re-code in fortran or C and run on a parallel machine (or may
>> not!). I would prefer to write the program in IDL in a way that is
>> relatively transferrable to fortran95 ultimately, which is why I
>> considered common blocks which turn into modules that can be called in
>> fortran.
>
> I also had on many occasions to suffer from global variables through
> Fortran modules.

And, not to pile on, but module variables in Fortran are inherently not threadsafe.

> Structures, pointers and objects as I suggested above are all pretty
> much possible to directly translate to Fortran.

As well as some of the OOP stuff as well (assuming you have a compiler that is compliant with the OOP stuff in Fortran2003).

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8 GUI won't save all overplots on one image...help!!
Next Topic: Cross signs when using postscript font

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:25:23 PDT 2025

Total time taken to generate the page: 0.79834 seconds