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

deferred sized array debugging problem with 10.1.019

kellerd
초급자
404 조회수

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 포인트
1 응답
Steven_L_Intel1
404 조회수
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 포인트
응답