Hi,
I have code that looks like this:
REAL :: x( 100, 2 ), xmax1
xmax1 = MAXVAL( x(:,1) )
This fails; I actually get the maximum of the whole array.
However, the following works as expected:
REAL :: xmax1( 2 )
...
xmax1 = MAXVAL( x, DIM=1 )
Can anyone suggest why the first form fails?
Thanks,
-P.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|