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

Home » Public Forums » archive » Call_External - memory problems?
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
Call_External - memory problems? [message #39276] Sun, 09 May 2004 23:39 Go to next message
gtg386d is currently offline  gtg386d
Messages: 2
Registered: May 2004
Junior Member
I had a very slow script that I have sped up considerably by writing a
c program and using call_external. this does what i want it to, but...
it executes in a loop, which also has a findfile command. previous to
using call_external, this worked. now it gives me the error:

% FINDFILE: Error managing child process.
Resource temporarily unavailable
% Execution halted at: $MAIN$ 177
/scratch/jon/trmm/check_sunrise.pro

appearing after a few loops. i have also tried the modified
find_file.pro.

from what i've been able to find, i am guessing that i have exceeded
memory allocation or some such. since the program ran prior to using
call_external, and all relevant changes are there, i am inclined to
look there first. any ideas? common pitfalls i might have stumbled
into? none of the initialized data types are growing in size, it seems
like it must come from repeated function access... the release is idl
5.4 on an SGI Origin. hopefully all relevant pieces of code below...

this line in my idl procedure:

s = call_external('coll.so','coll', $
long(nscan), $
geolocation, $
long(correctzfactor), $
latitude(c,d), $
longitude(c,d), $
convect)

calls this function:

void coll(int argc,void **argv)
{
int i, j, k;
float dlat, dlon, z;
int nscan = *(int *) argv[0];
int swath = 49;
int lev = 80;
float (*geolocation)[nscan][swath][2] = argv[1];
int (*correctzfactor)[nscan][swath][lev] = argv[2];
float lat = *(float *) argv[3];
float lon = *(float *) argv[4];
float (*convect)[2] = argv[5];
Re: Call_External - memory problems? [message #39408 is a reply to message #39276] Mon, 10 May 2004 14:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> No apologies needed. This group is for IDL *and* PV-Wave. And that's
> just the on-topic posts...

Whoops! I just realized all my articles to rec.tennis.backhand.lousy
were being cross-posted here. Sorry. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: forcing scroll bars in widget_draw
Next Topic: GET_KBRD()... behavior depends on OS properties?

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

Current Time: Wed Oct 08 14:56:30 PDT 2025

Total time taken to generate the page: 0.00509 seconds