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

Home » Public Forums » archive » Re: Out of range subscript encountered:
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
Re: Out of range subscript encountered: [message #69935] Tue, 23 February 2010 10:14
Katie Burnett is currently offline  Katie Burnett
Messages: 2
Registered: February 2010
Junior Member
On Feb 23, 12:02 pm, jeanh
<jghasb...@DELETETHIS.environmentalmodelers.ANDTHIS.com> wrote:
> On 23/02/2010 12:51 PM, Katie Burnett wrote:
>
>>          du = FLTARR(84,56)
>>          FOR k=0,26 DO BEGIN
>>                  FOR i=0,82 DO BEGIN
>>                          FOR j=0,54 DO BEGIN
>>                          du[i,j] = (u_400[i+1,j]-u_400[i,j])/(2*dx)
>>                          ENDFOR
>>                  ENDFOR
>>          ENDFOR
>
> Hi,
>
> could it be that dx is not a scalar but an array?
>
> Jean

Thanks Jean, that did the trick!
Re: Out of range subscript encountered: [message #69936 is a reply to message #69935] Tue, 23 February 2010 10:02 Go to previous message
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
On 23/02/2010 12:51 PM, Katie Burnett wrote:
> du = FLTARR(84,56)
> FOR k=0,26 DO BEGIN
> FOR i=0,82 DO BEGIN
> FOR j=0,54 DO BEGIN
> du[i,j] = (u_400[i+1,j]-u_400[i,j])/(2*dx)
> ENDFOR
> ENDFOR
> ENDFOR

Hi,

could it be that dx is not a scalar but an array?

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Out of range subscript encountered:
Next Topic: How to get matching elements of array efficiently

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

Current Time: Wed Oct 08 13:47:43 PDT 2025

Total time taken to generate the page: 0.00488 seconds