Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abrooks1085
Copy link
Contributor

@abrooks1085 abrooks1085 commented Oct 24, 2024

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:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

Copy link
Contributor

@rem1776 rem1776 left a 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))
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor Author

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

@bensonr
Copy link
Contributor

bensonr commented Oct 24, 2024

Same question as @rem1776.

@laurenchilutti
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants