passing arrays to subroutines in fortran

How do I view the contents of an array that has been passed to a subroutine? I’m using PGDBG and I’m not very familiar with it.

I’m using v6.1 of the fortran 95 compiler on a linux machine for system references.

[/code]

Hi Chris,

Section 1.7.6 of PGI Tools Guide, http://www.pgroup.com/doc/pgitools.pdf details how to print a variable’s value. For Fortran arrays, the command would be “print a(1:10)” where “a” is the name of your array, in your case, the callee subroutine’s local array name. Replace “1:10” with the actual range of elements that you would like to print.

Hope this helps,
Mat