Re: Out of range subscript encountered: [message #69935] |
Tue, 23 February 2010 10:14 |
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  |
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
|
|
|