Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29389 ディスカッション

How to get the address of a FORTRAN variable in Visual Studio.net

peledrg
ビギナー
1,292件の閲覧回数
A FORTRAN COMMON variable is being overwritten in a "C" program. How do I get the address of the FORTRAN variable so that I can track it in the "C" program in order to find out what writes over it?
Thanks,
Rachel
0 件の賞賛
2 返答(返信)
Steven_L_Intel1
従業員
1,292件の閲覧回数
That's a good question. I thought I could find a way to do it, but I couldn't. All I can suggest is that you add a line such as:

print *, loc(variablename)

to get the address.
peledrg
ビギナー
1,292件の閲覧回数
Steve,
Thank you so much. This print statement worked for me. I am all set.
Rachel.
返信