- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
print *, loc(variablename)
to get the address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Thank you so much. This print statement worked for me. I am all set.
Rachel.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page