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

Home » Public Forums » archive » spawning Fortran executables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
spawning Fortran executables [message #74012] Fri, 17 December 2010 10:30
Derek Philip Brown is currently offline  Derek Philip Brown
Messages: 1
Registered: December 2010
Junior Member
I'm running IDL 6.4 in a UNIX environment (not my call to make). I
often run batch files to call several subroutines that run water vapor
models. I also use spawn in those batch files to move other files
around, and other things. In general, I find idl (or spawn) waits for
the UNIX command to complete before continuing to the next batch file
program called.

Ok fine. The question is this. If I use spawn, 'model1' where
model1 is an executable that runs a Fortran program, will IDL know to
wait for that to finish before continuing to the next batch file
command. It is tough for me to test this, since model1 takes about
3/4 of a day to run. I'm actually not terrribly gifted at Fortran, so
I can't really whip up a test program either. The reason why I want
this to work is so that after model1 runs, I can update the F90 files
using string processing through the batch file, recompile, and rerun
model1 for another scenario. Essentially, model1 will have to run 30
times for 30 different years....and I have other stuff to do :)

I am aware I could use idl's wait to make sure there is enough time,
but the time it takes for the model to run varies with other users on
the machine....so it would really be a guess.

Does anyone know if IDL will automatically wait for the Fortran model
to run?

Cheers

Derek
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: LIST "bug": .Remove on an empty list
Next Topic: Re: spawning Fortran executables

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

Current Time: Wed Oct 08 13:48:32 PDT 2025

Total time taken to generate the page: 0.00425 seconds