Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* no such vector element
@ 2010-08-23 20:54 Mathew Yeates
  2010-08-24 18:23 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Mathew Yeates @ 2010-08-23 20:54 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-24 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 20:54 no such vector element Mathew Yeates
2010-08-24 18:23 ` Tom Tromey
2010-08-24 18:30   ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox