Re: Ploting some data during fortran code execution [message #15636] |
Thu, 03 June 1999 00:00 |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
Oh, by the way, I thought I should mention a *very* nice
way to take advantage of IDL's RPC capabilities.
I'm currently developing C programs for my PhD thesis, but
I like to use IDL as a plotting program (for easy visual
debugging) and as a prototyping language.
The way I do this is to use Remote Procedure Calls to send
data and commands to IDL. The *really* neat thing,
however, is that one idlrpc server process can be a server
for more than one client simultaneously.
So what I do is to use the idl/external/rpc/example.c
program as a command input front-end to an idlrpc process
running in the background.
My C programs connect to the same process and send data
and [e.g. plotting] commands. At the same time, I can use
the front-end to type commands interactively. The
example.c program is pretty "dumb" wrt. command line
editing, but guess what, you can easily run it under
idl-shell (sorry, idlwave-shell) in emacs, giving you all
the command line editing functionality you could ever
want, as well as the neat debugging/breakpoint
functionality of the idlwave package!
I really don't know what I'd do without it!
Regards,
Stein Vidar
|
|
|
Re: Ploting some data during fortran code execution [message #15637 is a reply to message #15636] |
Thu, 03 June 1999 00:00  |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
In article <3756640D.A277B67D@eureka.kjist.ac.kr>
Jaedeuk Lee <goodman@eureka.kjist.ac.kr> writes:
> Hi, all.
>
> I'm solving a nonlinear optimization problem.
> In my code, optimum solution is computed by iterative scheme.
> (I used L-BFGS-B routine.)
> In this case, I want to trace the shape of solution during iteration.
> To do that, I must plot that data during execution of executable made by
>
> fortran code.
> In pv-wave, it was possible by using 'waveinit', 'wavecmd', 'waveterm'.
> However, It looks impossible in idl, because idl don't have 'waveinit',
> 'wavecmd', 'waveterm'.
> Is there any method to execute idl commands in fortran program.
What's wrong with IDL_Init(), IDL_ExecuteStr() and IDL_Cleanup()?
You wouldn't expect RSI to use their competitor's name in their
own routines, would you?
Look at "Introduction to Callable IDL" and "Using Callable IDL under
Unix and VMS" in the External Development Guide (among the "Other
Online Books in the online help). There's a section on Fortran
use as well.
Regards,
Stein Vidar
|
|
|