News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Visualization of Arrays content in the watch list

Started by asd34, January 02, 2013, 07:51:03 AM

Previous topic - Next topic

asd34

Dear All,

I have difficulties when I have to visualize the content of arrays during the program execution, especially when I'm doing it step by step. Generally, if you hoover the mouse over the specific array or any variable you should see the content of at the time of execution. But when I'm using it doesn't show anything at all, though I remember that for old releases of CB I was be able to see the content of the variable or array etc.. I believe that I've switched something on and off. Does any body can help be to remedy the situation?


CB vesion : 12.11
MinGW     : 4.4.0
OS Win7 x64


Best Regards,

oBFusCATed

Steps:
1. Select expression
2. Right click -> Add watch
3. Right click on the watch -> Properties
4. Enable 'is array' and set the count
5. Click ok
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

asd34

Thanks,

BTW I have the dynamic arrays. What should I do if it says "A syntax error in expression, near `[1]@10'." ?

I wonder, how it handles the 1,2 or multidimensional arrays, is that Start and Count accounts for all dimensions in the array, isn't there a more automatic way, like editor detects itself the size of the array.

Regards,

oBFusCATed

Quote from: asd34 on January 02, 2013, 08:39:41 AM
BTW I have the dynamic arrays. What should I do if it says "A syntax error in expression, near `[1]@10'." ?
What is the code and the expression you are using. Probably you have to wrap in brackets.

Quote from: asd34 on January 02, 2013, 08:39:41 AM
I wonder, how it handles the 1,2 or multidimensional arrays, is that Start and Count accounts for all dimensions in the array, isn't there a more automatic way, like editor detects itself the size of the array.
I doubt it is possible to detect the sizes, unfortunately.
Start and count are for single dimension only.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

asd34

QuoteBTW I have the dynamic arrays. What should I do if it says "A syntax error in expression, near `[1]@10'." ?
What is the code and the expression you are using. Probably you have to wrap in brackets.

Sorry I forgot to mention that I use GFortran in MinGW suite. Here is the definiton for the array and memory allocation.

real, allocatable :: Kmm(:,:)
Allocate ( Kmm(rigid_floor_num*3,rigid_floor_num*3) )

Here is the sample assignment,
Kmm(:,:) = Rd_assem(1:test_num-1,1:test_num-1)

asd34


oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

asd34


IMHO it shouldn't have anything to do with fortran compiler, other than simply fetching the data from it. But it's a CB issue as far as I got ?

Am I wrong?

Regards,

oBFusCATed

Quote from: asd34 on January 03, 2013, 09:44:10 AM
IMHO it shouldn't have anything to do with fortran compiler, other than simply fetching the data from it. But it's a CB issue as far as I got ?
If you prove that it works in command line gdb, the it will be a cb's issue.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]