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

Convert Enzo/hydro-mhd into a subcomponent (Build Restructuring Part 1) #332

Merged
merged 9 commits into from
Feb 20, 2024

Conversation

mabruzzo
Copy link
Contributor

@mabruzzo mabruzzo commented Jul 19, 2023

This refactors Enzo/hydro-mhd into "subcomponents" that are compiled separately from the rest of the enzo-layer. This should improve compilation-times and the time it takes to perform a rebuild after a small change to a header.

This is part of a general restructuring that I'm applying to the whole enzo-layer. A separate PR has been proposed, #333, to update the website documentation to explain my thought-process.

However, it is worth separating this PR from #333. If we ultimately decide NOT to apply this restructuring strategy to the rest of Enzo-Layer (in which case #333 will be rejected), I think it makes a lot of sense for the Enzo/hydro-mhd subdirectory.

I will also post a series of other PRs that apply similar changes to other parts of the Enzo-Layer. (Part of the reason that they have been separated is that they touch a bunch of header files)

-> We needed to introduce an include statement into EnzoInitialBCenter.cpp since we reuse some of the Bfield functionality from the hydro-layer to help initialize magnetic fields
-> EnzoPermutedCoordinates got moved into the utils subdirectory because it can be used in more cases than just hydro. For example, it is used in the initializer for the Shock Tube test problem. But, I could easily be convinced to put it back.
@mabruzzo mabruzzo force-pushed the enzo-hydro-mhd-subcomponents branch from 4856f78 to d2ec7f9 Compare July 19, 2023 16:19
@mabruzzo mabruzzo changed the title Enzo hydro mhd subcomponents (Build Restructuring Part 1) Convert Enzo/hydro-mhd into a subcomponent (Build Restructuring Part 1) Jul 19, 2023
@mabruzzo mabruzzo added the build-system Issue/PR associated with the build system label Aug 8, 2023
Copy link
Contributor

@bwoshea bwoshea left a comment

Choose a reason for hiding this comment

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

This looks good to me - the changes all seem straightforward!

@bwoshea
Copy link
Contributor

bwoshea commented Feb 20, 2024

@mabruzzo this is ready to merge once the branch is updated to include changes from main!

@mabruzzo mabruzzo merged commit 5bf485b into enzo-project:main Feb 20, 2024
7 checks passed
@mabruzzo mabruzzo deleted the enzo-hydro-mhd-subcomponents branch February 20, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system Issue/PR associated with the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants