Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

deferred sized array debugging problem with 10.1.019

kellerd
Beginner
411 Views

I am a problem when I reun a this code under debug. It complains :

forrtl: severe (408): fort: (7): Attempt to use pointer X when it is not associa
ted with a target

It 'sees' x as an undefined variable with a mouseover. The debugger 'sees'the array passedas the x postion parameter properly before the call as an array dimensioned to 10.

call GaussQuadLegendre(mc_zero,delt,mazinisin_num_steps_gaussquad, gaussquad_abscissa,gaussquad_weights)

subroutine GaussQuadLegendre(x1,x2,n, x,w)
INTEGER(ik), intent(in) :: n
REAL(rk), INTENT(IN) :: x1,x2
REAL(rk), DIMENSION(:), INTENT(OUT) :: x,w
REAL(rk) :: xl,xm
REAL(rk), DIMENSION((size(x)+1)/2) :: p1,p2,p3,pp,z,z1

INTEGER(ik) :: its,j,m

...
x(1:m) = xm-xl*z !<<<<<<<<<<<<<<<<<<,,, x is 'undefined'according to debugger
x(n:n-m+1:-1) = xm+xl*z
w(1:m) = mc_two*xl/((mc_one-z**2)*pp**2)
w(n:n-m+1:-1) = w(1:m)

endsubroutine GaussQuadLegendre

Any ideas?

Dave

0 Kudos
1 Reply
Steven_L_Intel1
Employee
411 Views
The project option "Run Time > Check for null pointers and allocatable array references" is enabled and, for some reason, the run-time check is improperly firing. If you turn off that check it should get you past this.

Please try the current 10.1.021 compiler (rebuild the application) and see if this error still occurs. If it does, please report it to Intel Support and attach a small (if possible) test case that shows the problem. Please also provide the link to this forum post so support knows it came from the forum.
0 Kudos
Reply