no such vector element

Mathew Yeates mat.yeates@gmail.com
Mon Aug 23 20:54:00 GMT 2010


I am getting this error when I try and access a fortran array.

>p Opt_depth_ref_per_band(2,2)
no such vector element

Opt_depth_ref_per_band is an array with 4 rows and 74 columns.

It is declared as
real,    intent(out), dimension(NBAND, Num_mixture) :: &
      	   Opt_depth_ref_per_band

Where NBAND is a constant and Num_mixture is an argument to the subroutine.

I can print values by using x/f on the array address.

Any ideas?

-Mathew



More information about the Gdb mailing list