<div dir="ltr">You can get a plain aggregation (PA) method in GAMG with -pc_gamg_nsmooths 0, but Notay is a much different PA algorithm. It is much more involved than what GAMG does. PA is not usually better for the Laplacian but it is simple and cheap and can be good if smoothed aggregation is not working well.<div><div><br></div><div>Also, I am finding (today) that -pc_gamg_square_graph 0 is faster than -pc_gamg_square_graph 1, what I usually use, for Q2 elements.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 27, 2019 at 3:06 AM TARDIEU Nicolas <<a href="mailto:nicolas.tardieu@edf.fr" target="_blank">nicolas.tardieu@edf.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Thank you very much for your answer, Mark.<br>
Do you think it is worth it, to play around with aggregation variants? Plain aggregation "à la Notay" for instance.<br>
<br>
Nicolas<br>
<br>
<br>
<br>
<br>
<br>
<br>
De : <a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a> <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>><br>
Envoyé : mercredi 26 juin 2019 22:37<br>
À : TARDIEU Nicolas<br>
Cc : PETSc users list<br>
Objet : Re: [petsc-users] GAMG scalability for serendipity 20 nodes hexahedra<br>
<br>
<br>
I get growth with Q2 elements also. I've never seen anyone report scaling of high order elements with generic AMG.<br>
<br>
<br>
First, discretizations are very important for AMG solver. All optimal solvers really. I've never looked at serendipity elements. It might be a good idea to try Q2 as well.<br>
<br>
<br>
SNES ex56 is 3D elasticity on a cube with tensor elements. Below are parameters that I have been using. I see some evidence that more smoothing steps (-mg_levels_ksp_max_it N) helps "scaling" but not necessarily solve time.<br>
<br>
<br>
An example of what I see, running ex56 with -cells 8,12,16 -max_conv_its 5 and the below params I get these iteration counts: 19, 20, 31, 31, 38.<br>
<br>
<br>
My guess is that you need higher order interpolation for higher order elements and when you add a new level you get an increase in condition number (ie, it is not an optimal MG method). But, the original smoothed aggregation paper did have high order discretizations their theory said it was still optimal, as I recall.<br>
<br>
<br>
Mark<br>
<br>
<br>
-log_view<br>
-max_conv_its 5<br>
-petscspace_degree 2<br>
-snes_max_it 2<br>
-ksp_max_it 100<br>
-ksp_type cg<br>
-ksp_rtol 1.e-11<br>
-ksp_atol 1.e-71<br>
-ksp_norm_type unpreconditioned<br>
-snes_rtol 1.e-10<br>
-pc_type gamg<br>
-pc_gamg_type agg<br>
-pc_gamg_agg_nsmooths 1<br>
-pc_gamg_coarse_eq_limit 1000<br>
-pc_gamg_process_eq_limit 200<br>
-pc_gamg_reuse_interpolation true<br>
-ksp_converged_reason<br>
-snes_monitor_short<br>
-ksp_monitor_short<br>
-snes_converged_reason<br>
-use_mat_nearnullspace true<br>
-mg_levels_ksp_max_it 4<br>
-mg_levels_ksp_type chebyshev<br>
-mg_levels_esteig_ksp_type cg<br>
-gamg_est_ksp_type cg<br>
-gamg_est_ksp_max_it 10<br>
-mg_levels_esteig_ksp_max_it 10<br>
-mg_levels_ksp_chebyshev_esteig 0,0.05,0,1.05<br>
-mg_levels_pc_type jacobi<br>
-petscpartitioner_type simple<br>
-mat_block_size 3<br>
-matptap_via scalable<br>
-run_type 1<br>
-pc_gamg_repartition false<br>
-pc_gamg_threshold 0.0<br>
-pc_gamg_threshold_scale .25<br>
-pc_gamg_square_graph 1<br>
-check_pointer_intensity 0<br>
-snes_type ksponly<br>
-ex56_dm_view<br>
-options_left<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Jun 26, 2019 at 8:21 AM TARDIEU Nicolas via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
<br>
Dear PETSc team,<br>
<br>
<br>
I have run a simple weak scalability test based on canonical 3D elasticity problem : a cube, meshed with 8 nodes hexaedra, clamped on one of its face and submited to a pressure load on the opposite face. <br>
I am using the FGMRES ksp with GAMG as preconditioner. I have set the rigid body modes using MatNullSpaceCreateRigidBody and its works like a charm. The solver exhibit a perfect scalability until 800 cores (I haven't tested with more cores). The ksp always converges in 11 or 12 iterations. Let me emphasize that I use GAMG default options.<br>
<br>
<br>
<br>
Nevertheless, if I switch to a quadratic mesh with 20 nodes serendipity hexaedra, the weak scalability deteriorates. For instance the number of iteration for the ksp increases from 20 iterations for the smallest problem to 30 for the biggest. <br>
Here is my question : I wonder what is the right tuning for GAMG to recover the same weak scalability as in the linear case? I apologize if this is a stupid question...<br>
<br>
<br>
<br>
<br>
<br>
<br>
I look forward to reading you, <br>
Nicolas<br>
<br>
<br>
<br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.<br>
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.<br>
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br>
____________________________________________________<br>
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.<br>
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.<br>
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.<br>
<br>
<br>
<br>
<br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.<br>
<br>
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.<br>
<br>
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br>
____________________________________________________<br>
<br>
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.<br>
<br>
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.<br>
<br>
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.<br>
<br>
</blockquote></div>