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

Performance degradation when running in parallel #30

Open
bindi-nagda opened this issue Mar 24, 2023 · 1 comment
Open

Performance degradation when running in parallel #30

bindi-nagda opened this issue Mar 24, 2023 · 1 comment

Comments

@bindi-nagda
Copy link
Collaborator

When running the target time_stepping or fluid_multigrid one more than one processor, with USE_PRECOND = TRUE, the relative residual decreases very, very slowly. The solver doesn't converge to the given rtol within the prescribed ksp_max_it. The issue may be with the grid generation for the coarser levels with the multigrid solver.

Running on multiple processors without preconditioning doesn't affect the performance.

@abarret
Copy link
Owner

abarret commented Mar 24, 2023

This is almost definitely the grid generation in the multigrid solver. It currently takes the coarsest level in the original patch hierarchy and coarsens each patch to generate a new level. If there are multiple patches on the coarsest level in the original patch hierarchy, this generation can lead to coarse levels with patches that are one grid cell wide (or if the number of grid cells is not a power of 2, eventually overlapping patches).

The correct behavior would be to generate coarse levels based on a gridding algorithm such that a minimum patch size is enforced.

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

No branches or pull requests

2 participants