- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I have a fortran program(with large array):
module icon real,save :: theta0,estart,zstart endmodule icon
It works well gfortran, bu if it compiled with Intel compiler 2018.update3 or 2015, the estart variable losts its value when called in other subroutine.
if I have added a new variable tmpestart, the tmpestart has its value correctly.
module icon real,save :: theta0,estart,zstart,tmpestart endmodule icon
Can you help me how to deal with it or is this a Intel compiler bug?
Thank you very much.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is not a complete example of your problem, you mention a large array but there are no arrays shown. We do not know where and when you set the values for your module variables. You mention subroutines but there are no subroutines shown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The reason is during some arrays out of bounds.
Compiled with -check bounds can find the array.
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