Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mathew Yeates <mat.yeates@gmail.com>
To: gdb@sourceware.org
Subject: no such vector element
Date: Mon, 23 Aug 2010 20:54:00 -0000	[thread overview]
Message-ID: <AANLkTikG84yGZMLZDy_bSc5jg9Ezn6fsAFYZy1u1GqX2@mail.gmail.com> (raw)

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


             reply	other threads:[~2010-08-23 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 20:54 Mathew Yeates [this message]
2010-08-24 18:23 ` Tom Tromey
2010-08-24 18:30   ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikG84yGZMLZDy_bSc5jg9Ezn6fsAFYZy1u1GqX2@mail.gmail.com \
    --to=mat.yeates@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox