comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: make_array function bug
items: Re: make_array function bug

make_array function bug
type: item
description: I discovered an odd bug in make_array() Try this plot, make_array(99999L, start=10d, /index, increment=2d, /double) Then this plot, make_array(99999L+1L, start=10d, /index, increment=2d, /double) It looks to me like there's a typecasting problem going on inside the routine, causing problems! I see that the increment keyword was added in 8.3, so there could be a newish bug there. In this example, once the number of elements grows to 100k, the output is a sawtooth, no longer smooth.
creator: Ken G
date: 2014-06-23T23:10:18-00:00

Re: make_array function bug
type: item
description: On Tuesday, June 24, 2014 1:10:18 AM UTC+2, Ken G wrote: > I discovered an odd bug in make_array() > > Try this > > plot, make_array(99999L, start=10d, /index, increment=2d, /double) > > Then this > > plot, make_array(99999L+1L, start=10d, /index, increment=2d, /double) > > It looks to me like there's a typecasting problem going on inside the routine, causing problems! I see that the increment keyword was added in 8.3, so there could be a newish bug there. Seems to be a bug in multithreading, the start values for the threads are set incorrectly. It works as expected with 'cpu, tpool_nthreads=1'. regards, Lajos
creator: Lajos Foldy
date: 2014-06-25T08:41:21-00:00

Re: make_array function bug
type: item
description: Good catch! You should definitely open a bug report for this one...
creator: Fabzi
date: 2014-06-25T09:05:16-00:00

Re: make_array function bug
type: item
description: On Wednesday, June 25, 2014 6:05:16 PM UTC+9, Fabien wrote: > Good catch! > > > > You should definitely open a bug report for this one... Ack. That's too funny. I just discovered this bug at around the same time. It also affects the [0:n:inc] method of creating arrays. I'll fix it for the next release of IDL. Cheers, Chris
creator: chris_torrence@NOSPAM
date: 2014-07-03T09:30:28-00:00