- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everybody,
I have code which is developed initially with Fortran 90 in 32-bit. now when I compile it with 64-bit compiler, I realized that he compiler does not initialized the variable to zero and it just initialized the with weird values that resulting to wrong results in the output. how can I automatically initialized all values to zero in compilerwithout changing the source code?
Cheers,
Pejman
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - pe_rasouliyahoo.com
thanks for the reply. I am nor sure but is it in "Tools/options/Intel Visula fortran/compilers/default otions"?
Project->Properties->Fortran->Data->Initialize Local Scalar Variables.
or add options (type) to
Project->Properties->Fortran->Data->Command Line
A.
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You would be better off to correct the program. But otherwise, try adding the options /Qsave and /Qzero. You just got lucky on the 32-bit side as variables aren't initialized there either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
You would be better off to correct the program. But otherwise, try adding the options /Qsave and /Qzero. You just got lucky on the 32-bit side as variables aren't initialized there either.
thanks for the reply. I am nor sure but is it in "Tools/options/Intel Visula fortran/compilers/default otions"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - pe_rasouliyahoo.com
thanks for the reply. I am nor sure but is it in "Tools/options/Intel Visula fortran/compilers/default otions"?
Project->Properties->Fortran->Data->Initialize Local Scalar Variables.
or add options (type) to
Project->Properties->Fortran->Data->Command Line
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You also have to set the Data > Local Variable Storage property to "All variables SAVE".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
You also have to set the Data > Local Variable Storage property to "All variables SAVE".
thank you so much!!!
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