Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Undefined array/pointer problem

$
0
0

I have a strange problem in a subroutine of my code: I have defined an array which is defined as the variable of my subroutine and all the other routines that call the current subroutine (means I transfer this array to the main program). The array is correctly associated 0 values at the beginning of the current subroutine, but suddenly in the middle, before the line that it is going to be applied, it is getting Undefined (undefined address/undefined pointer/array)! I have done debugger but the problem does not seem coming from the routine and it seems to come from some integration bug issues. Actually I have tried to use the local array value instead of the array which is transferred by the current subroutine to the main code, and it worked! But since I need this array in my main code, I need to transfer it. I hope some body could help me to adjust this problem. I am using the FORTRAN compiler 10.1.025 and visual studio 2005.

Thank you in advance


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>