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

Bad convergence using BoomerAMG for system of equations and InterpType doesn't work #1066

Open
sahar-shpitz opened this issue Feb 10, 2024 · 2 comments

Comments

@sahar-shpitz
Copy link

Hello,

I'm trying to use BoomerAMG as a preconditioner to GMRES to solve the linear system resulting from compressible 2D flow. There are 4 unknowns (density, velocity x, velocity y, and energy), so the matrix is a 4x4 block matrix. I did use the following functions:

HYPRE_BoomerAMGSetNumFunctions(precond, 4);
HYPRE_BoomerAMGSetDofFunc(recond, dof_func);
HYPRE_BoomerAMGSetNodal(precond, 1);

However, I get bad convergence or no convergence at all (depending on how low I set HYPRE_BoomerAMGSetRelaxWt), while the regular Jacobi relaxation function that I wrote does converge. I suspect that the relaxation type set by the function HYPRE_BoomerAMGSetRelaxType does not use a 'block' relaxation method, with a small 4x4 dense matrix inversion. Is that true? If so, can I do something about it to get good convergence? Is there something that I'm missing?

I also tried HYPRE_BoomerAMGSetInterpType(precond, 10), but it doesn't work for some reason. It allocates all the memory on my computer and then crashes.

Thanks in advance,

Sahar

@victorapm
Copy link
Contributor

Hi Sahar,

BoomerAMG alone is not suitable to your problem. One option may be MGR, which targets multiphysics problems. Is your code open-source?

@sahar-shpitz
Copy link
Author

Hi Victor,

Thank you for your reply.

The code is a research code and is not open source at the moment. Would it help to print out A and b?

I can't find much documentation on MGR. Are there any examples or explanations on how to use it?

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