Skip to content

Flang doesn't compile NWTC_IO.f90#2619

Merged
andrew-platt merged 2 commits intoOpenFAST:rc-4.0.1from
andrew-platt:b/rocm-flang-2
Jan 29, 2025
Merged

Flang doesn't compile NWTC_IO.f90#2619
andrew-platt merged 2 commits intoOpenFAST:rc-4.0.1from
andrew-platt:b/rocm-flang-2

Conversation

@andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
The ROCM Flang compiler doesn't handle character arrays of length 1 in case statements for some reason. This modifies one routine very lightly so that Flang can compile OpenFAST

Related issue, if one exists
Issue reported internally

Impacted areas of the software
Compilation with ROCM Flang compiler only.

Additional supporting information
Flang has some peculiarities.

Test results, if applicable
None affected

@andrew-platt andrew-platt added this to the v4.0.1 milestone Jan 29, 2025
@andrew-platt andrew-platt self-assigned this Jan 29, 2025
Copy link
Collaborator

@deslaughter deslaughter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, simple fix to a weird compiler bug.

@andrew-platt andrew-platt merged commit 819e940 into OpenFAST:rc-4.0.1 Jan 29, 2025
44 checks passed
@andrew-platt andrew-platt mentioned this pull request Jan 30, 2025
29 tasks
@andrew-platt andrew-platt deleted the b/rocm-flang-2 branch February 5, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants