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

Fix circular header file dependency #3725

Merged

Conversation

WeiqunZhang
Copy link
Member

AMReX_GpuContainers.H included AMReX_Scan.H, which in turn includes AMReX_Gpu.H, which in turn includes AMReX_GpuContainers.H.

In this PR, AMReX_Scan.H is removed from AMReX_GpuContainers.H, because it does not need it.

Thanks to @zingale and clang-tidy.

@WeiqunZhang WeiqunZhang requested a review from zingale January 26, 2024 19:53
@WeiqunZhang WeiqunZhang force-pushed the fix_circular_include branch 3 times, most recently from 9d0ffb0 to c09beb5 Compare January 26, 2024 21:58
AMReX_GpuContainers.H included AMReX_Scan.H, which in turn includes
AMReX_Gpu.H, which in turn includes AMReX_GpuContainers.H.

In this PR, AMReX_Scan.H is removed from AMReX_GpuContainers.H, because it
does not need it.
@WeiqunZhang WeiqunZhang merged commit 41397e2 into AMReX-Codes:development Jan 26, 2024
67 of 69 checks passed
@WeiqunZhang WeiqunZhang deleted the fix_circular_include branch January 26, 2024 23:27
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.

2 participants