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

Home » Public Forums » archive » Re: Calling IDL from Fortran called by IDL
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: Calling IDL from Fortran called by IDL [message #28191 is a reply to message #28188] Tue, 27 November 2001 02:02 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Kevin A. Park wrote:

> Hi,
>
> I have an IDL GUI which sits on top of a calculation engine which
> is written in Fortran 90. Currently IDL accesses the calculation engine
> by calling C wrapper functions via CALL_EXTERNAL. These C wrappers then
> call Fortran routines. The system runs both on Solaris and Windows
> platforms. I am currently using IDL 5.4, but will upgrade to IDL 5.5
> soon.
>
> Some of the calculations in the Fortran take a long time, so what I
> would like to do is have IDL create a progress bar which can be updated
> from the Fortran.

I'm pretty sure that you are on to a non-starter here. I don't think this
will be possible until IDL is multi-threaded. Even if you can somehow get
your FORTRAN to update a widget, how that widget is rendered on the display
won't change until the windowing event loop is reentered when your external
code returns to IDL.

What you want to do is normally achieved by having the work done in a work
thread, and letting the main thread get on with handling events in the
display. From my limited knowlege of Java I think it's true for Java also.

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 5.4 on Solaris? Please test
Next Topic: Re: New All-Time Records on IDL Newsgroup

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

Current Time: Tue Dec 02 06:43:37 PST 2025

Total time taken to generate the page: 0.48206 seconds