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

New function for domain decomposition #4183

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

WeiqunZhang
Copy link
Member

Add a new function that decomposition a Box into BoxArray. The number of Boxes in the returned BoxArray matches the given nboxes argument, unless the domain is too small. We aim to decompose the domain into subdomains that are as cubic as possible, even if this results in Boxes with odd numbers of cells. Thus, this function is generally not suited for applications with multiple AMR levels or for multigrid solvers. However, it could be useful for single-level applications that prefer exactly one Box per process.

@WeiqunZhang WeiqunZhang force-pushed the decompose_domain branch 2 times, most recently from 77023bb to 664ecfd Compare October 5, 2024 00:15
Add a new function that decomposition a Box into BoxArray. The number of
Boxes in the returned BoxArray matches the given nboxes argument, unless the
domain is too small. We aim to decompose the domain into subdomains that are
as cubic as possible, even if this results in Boxes with odd numbers of
cells. Thus, this function is generally not suited for applications with
multiple AMR levels or for multigrid solvers. However, it could be useful
for single-level applications that prefer exactly one Box per process.
@WeiqunZhang WeiqunZhang marked this pull request as ready for review October 5, 2024 01:29
@WeiqunZhang WeiqunZhang enabled auto-merge (squash) October 5, 2024 01:29
@WeiqunZhang WeiqunZhang merged commit 6239d25 into AMReX-Codes:development Oct 5, 2024
59 checks passed
@WeiqunZhang WeiqunZhang deleted the decompose_domain branch October 5, 2024 01:49
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