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

Referencing to array pointers in fortran

$
0
0

I have acquired the big fortran code and I am trying to refer to the array and output the array values. I can't output the results properly. 

For example an array of two dimensions array1(:,:) is referred by a pointer as follows: 

intereger(pntrsize) , pointer: dps 

Now, I want to print out the values of array1(2,3) but I don't know how to print that value using pointers. Can anyone give any suggestions on using pointers properly in fortran ? Everytime I try to tweak things, I always get zero values. 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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