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

Move CheckDims and ParseGeometryInput out of WarpXUtil #5354

Open
wants to merge 4 commits into
base: development
Choose a base branch
from

Conversation

lucafedeli88
Copy link
Member

@lucafedeli88 lucafedeli88 commented Oct 2, 2024

This PR moves the function ParseGeometryInput into WarpXAMReXInit.cpp, and the function CheckDims into WarpXInit.H/cpp. It also makes sure that CheckDims is called only once. Note that the check on geom.ProbLo(0) depending on the EM/ES solver is extracted from ParseGeometryInput and placed inside WarpX.cpp . Note also that parse_geometry_input, despite being conceptually related to the initialization of AMReX, must run after having called amrex::Initialize .

The idea is to distribute the content of the miscellaneous WarpXUtil.H/cpp files into more appropriate source files.

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Clean code, improve readability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants