Can't Print Two Dimensional Array Element for Fortran
From:
lyle lyle
Subject:
Can't Print Two Dimensional Array Element for Fortran
Date:
Sun, 28 Mar 2010 22:50:38 -0500
Hi Guys,
I write code in Fortran and found that I couldn't print an element's value if the element wasn't in the first column. For example,
There is an array A and its size is 5x3. In gdb, I can get its first column elements' value with the command: p A(1, 1), until A(5, 1), because the array is saved in memory according to columns. However, if I want to get A(1, 2), then gdb showed the error message: no such vector element.