-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added save attribute to Host Associated Arrays #1606
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, what error is being fixed by adding the save
attributes?
character(100) :: cline1, cline2, cline3, cline4, cline5, clin6 | ||
|
||
!> read in computed values | ||
open(newunit=iunit, file=di_file) | ||
open(unit=iunit,file=trim(di_file)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be changed back to using newunit rather than a hardcoded unit number. It's typically a better practice and I think this would also break the test with cray since it reserves 100 for stdin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Andrew just needs to merge in the main branch - he made these changes before Jesse's newunit fix got merged in so now it shows as Andrew changing it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Lauren is correct. I'll fix it
Same question as @rem1776. |
Can you rewrite this test to pass the arrays into the subroutines rather than keep them as program level variables? From our group discussions, this seems to be agreed upon as a path forward with this unit test. |
Description
Adds save attribute to host associated arrays in test_topography and test_diag_integral so that these tests now pass with the ifx compiler.
How Has This Been Tested?
The Topography and Diag_integral unit tests successfully build and pass using the Intel oneAPI 2024.2 IFX compiler on an AMD box.
Checklist:
make distcheck
passes