- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a compiler option (or any other option) to initialize all the FORTRAN variables to zero.
I have tried /Qzero but this does not work for me.
I have a very large legacy code that requires this.
Thank you
I have tried /Qzero but this does not work for me.
I have a very large legacy code that requires this.
Thank you
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - alan.wilhite@ae.gatech.edu
Is there a compiler option (or any other option) to initialize all the FORTRAN variables to zero.
I have tried /Qzero but this does not work for me.
I have a very large legacy code that requires this.
Thank you
I have tried /Qzero but this does not work for me.
I have a very large legacy code that requires this.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/Qzero works for onlylocal variables. If you need to find occurences where variables are unitialized you can use the /check:uninit option to add runtime checks.
------
Wendy

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