I have run a memory analysis (the widest scope memory analysis type) via Inpsector XE 2013. It includes analysing of stack acceses, to cach uninitialized arrays/variables.
Attached is a PNG figure with the results.
Note the strange behavior in Polar_HUCM.F90 module, which imply there is uninitialized memory access in line 119. However, note that line 120 is identical in terms of using the same arrays and specifically the same part of the array being controlled by "kb" loop.
Am I missing something here ? Is there a more efficient way of checking for uninitialized variables/arrays?
Thanks for all your comments,
Once an uninitialized read has been reported for a variable, the memory is marked so that subsequent reads are not reported.
My guess is that it is reporting on 'bin_mass' in line 119. Since it was reported already, the read of that variable in line 120 will not be reported.