- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, all,
I'm using Intel Visual Fortran in Windows XP, and I wrote a program that has a module with user-defined type, like this
Thanks for help!
DONG Li
I'm using Intel Visual Fortran in Windows XP, and I wrote a program that has a module with user-defined type, like this
[plain]type cellMy problem is when I am debugging, I can't watch a variable in "cell" type!
real(8) :: x_center
real(8) :: x_left
real(8) :: x_right
real(8) :: dx
real(8), allocatable :: u_left(:)
real(8), allocatable :: u_right(:)
real(8), allocatable :: q_mean(:)
real(8) :: q_left
real(8) :: q_right
real(8) :: integral_flux_left
real(8) :: integral_flux_right
real(8) :: fractional_flux_left
real(8) :: fractional_flux_right
character(10) :: reconstruction_type
real(8) :: slope
end type cell[/plain]
Thanks for help!
DONG Li
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By the way, I can watch it in Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - dong_li_1985
By the way, I can watch it in Linux.
Hi,
which version do you use (on Windows). The derived type variables are visible in VS debugger in IVF version 11.X (and perhaps from 10 something, Steve will know the details). If you want to see the variables inside module then the "old" way of doing this was to type (in watch window)
Module_Name::variable_name
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - ArturGuzik
Hi,
which version do you use (on Windows). The derived type variables are visible in VS debugger in IVF version 11.X (and perhaps from 10 something, Steve will know the details). If you want to see the variables inside module then the "old" way of doing this was to type (in watch window)
Module_Name::variable_name
A.
I'm using 11.0.061. And I have tried with "Module_Name::variable_name" in watch window, it works! But need I do this everytime?
Thanks for replying!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - dong_li_1985
Hi, ArturGuzik,
I'm using 11.0.061. And I have tried with "Module_Name::variable_name" in watch window, it works! But need I do this everytime?
Thanks for replying!
I'm using 11.0.061. And I have tried with "Module_Name::variable_name" in watch window, it works! But need I do this everytime?
Thanks for replying!
Well, I'm not sure now, but certainly Steve can provide definite answer to that. I have version 11.0.072 and everything works there, I mean, you just use cursor to get info (no typing needed). I recall that the improvements to the debugger (displayed symbols) were introduced "recently", although I'm a bit confused with all that versions, betas etc.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't easily test right now using both an 11.0.074 compiler and 11.0.074 VS integration, but I do see that using 11.0.074 compiler and the 11.1 VS integration works - the module variable shows up under locals and I can watch it without naming the module. This requires that the module be USEd and the variable be referenced within the routine where I want to look at it. Otherwise, the modname::varname syntax is needed.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page