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

Home » Public Forums » archive » Running a code multiple times automatically
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: Running a code multiple times automatically [message #92586 is a reply to message #92577] Tue, 19 January 2016 00:43 Go to previous messageGo to previous message
rojofija is currently offline  rojofija
Messages: 9
Registered: January 2015
Junior Member
On Saturday, 16 January 2016 22:52:35 UTC, Michael Galloy wrote:
> On 1/16/16 2:38 PM, Michael Galloy wrote:
>> This uses my library at github.com/mgalloy/mglib, particularly the
>> src/multiprocessing set of routines. These use the IDL_IDLBridge to do
>> what you are looking to do.
>>
>> ; create 10 processes
>> pool = mg_pool(n_processes=10)
>>
>> ; I assume the arguments will be different for each process, but here
>> ; we set them all to be the same
>> str1 = strarr(10) + 'stringvar1'
>> str2 = strarr(10) + 'stringvar2'
>>
>> ; since NAMECODE is a procedure result will be !null
>> result = mg_pool->map('namecode', str1, str2, /is_procedure)
>>
>> ; free the processes
>> obj_destroy, pool
>>
>> Mike
>
> Actually, I simplified this after looking at it:
>
> pool = mg_pool(n_processes=10)
> str1 = strarr(10) + 'stringvar1'
> str2 = strarr(10) + 'stringvar2'
> pool->map, 'namecode', str1, str2
> obj_destroy, pool
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)

Dear Michael,

Thank you very much for the detailed solution. For the moment I have not been able to implemented, the cmake at the office is too old so it was not possible to me to compile your C libraries there. I think helpdesk will updated soon.

I tried to do it in my laptop but once I run the cmake following your instructions, it seems to be running and a message appears on the terminal, something like: "The C compiler is GNU 4.x.x" but after that nothing happen.

I was wondering if I am missing something.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: list concatenation
Next Topic: problem with idl program

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

Current Time: Wed Oct 08 17:58:46 PDT 2025

Total time taken to generate the page: 0.00377 seconds