Home > Archive > Fortran > April 2005 > watch module variables in CVF66c
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
watch module variables in CVF66c
|
|
| Yiorgos Lykidis 2005-04-22, 8:57 am |
| Does anyone know how we can watch private variables owned by a module?
i.e.
module XYZ
implicit none
REAL(8), ALLOCATABLE, private :: a(:),b(:,:,:),c(:,:,:)
contains
.....
I put the names a,b,c in the watch window but I get a message of "undefined
variable"..
Yiorgos
| |
| Tom Micevski 2005-04-22, 3:59 pm |
| Yiorgos Lykidis wrote:
> Does anyone know how we can watch private variables owned by a module?
> i.e.
>
> module XYZ
>
> implicit none
> REAL(8), ALLOCATABLE, private :: a(:),b(:,:,:),c(:,:,:)
>
> contains
> ....
>
> I put the names a,b,c in the watch window but I get a message of "undefined
> variable"..
try XYZ::a instead.
| |
| NuclearWizard 2005-04-22, 4:00 pm |
| Nice tip. Do you know how to watch parameters, too?
| |
| Richard E Maine 2005-04-22, 8:57 pm |
| In article <1114192306.424180.127310@g14g2000cwa.googlegroups.com>,
"NuclearWizard" <william.wieselquist@gmail.com> wrote:
> Nice tip. Do you know how to watch parameters, too?
There might (I don't know for the particular compiler) be some compiler
option to force otherwise, but realize that in general, parameters don't
even exist at run-time, so there isn't anything to watch. A parameter is
fundamentally a compile-time thing; it doesn't in general have a
run-time address or anything.
(I assume you are talking about parameters as in those things defined by
parameter statements - what the Fortran standard calls named constants.
If you are talking about dummy arguments, that's different. I mention
this only because the terminology in other languages is different and it
is not unheard of for people to say "parameter" when they mean an
argument in Fortran).
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
| |
| NuclearWizard 2005-04-23, 3:57 am |
| Thanks, Richard. I speak of named constants. Sometimes I want to know
what they are for debugging purposes. I end up writing a one-line
function that returns them and once everything is working I delete the
functions. Because it's for debugging only, it would be nicer to have
a "watch window" way to do this. Thanks again,
-Will
| |
| Tom Micevski 2005-04-23, 3:57 am |
| NuclearWizard wrote:
> Nice tip. Do you know how to watch parameters, too?
i don't think you can (or i haven't found out how to do it).
| |
| Steve Lionel 2005-04-25, 3:59 pm |
| On 22 Apr 2005 14:05:50 -0700, "NuclearWizard" <william.wieselquist@gmail.com>
wrote:
>Thanks, Richard. I speak of named constants. Sometimes I want to know
>what they are for debugging purposes. I end up writing a one-line
>function that returns them and once everything is working I delete the
>functions. Because it's for debugging only, it would be nicer to have
>a "watch window" way to do this. Thanks again,
CVF does not support evaluation of PARAMETER constants in the debugger. The
:: syntax for viewing module variables is documented in the CVF Programmer's
Guide chapter on using the debugger.
Steve Lionel
Software Products Division
Intel Corporation
Nashua, NH
User communities for Intel Software Development Products
http://softwareforums.intel.com/
Intel Fortran Support
http://developer.intel.com/software/products/support/
|
|
|
|
|