[petsc-users] Reuse hypre interpolations between successive KSPOnly solves associated with TSStep ?
Sajid Ali
sajidsyed2021 at u.northwestern.edu
Mon May 4 09:22:01 CDT 2020
Hi PETSc-developers,
For a linear TS, when solving with -ts_type cn -ksp_type fgmres -pc_type
gamg, the flag -pc_gamg_reuse_interpolation can be used to re-use the GAMG
interpolation calculated when solving the first time step. Increasing the
number of time steps only increases the time spent in application of the
precondition and the setup time is constant.
Is there an equivalent way to do this with Hypre’s BoomerAMG ? I’m using
euclid as the smoother but adding the -pc_hypre_euclid_reuse flag only
seems to make it reuse the euclid ILU smoothing within a particular TS time
step, i.e. increasing the number of time steps linearly increases the time
spent in setting up the preconditioner.
Another approach I tried was to use hypre within the PCHMG preconditioner
(which I hoped would allow me to use BoomerAMG to computer interpolations
while also reusing the interpolations via the -pc_hmg_reuse_interpolation
flag.) However, I’m unable to pass the parameter to BoomerAMG when Hypre is
set as the inner PC for the HMG preconditioner. I didn’t see any options
for doing so when I searched the -help output and neither does setting
options via -hmg_inner_pc_hypre_boomeramg_option value work. What am I
missing here ?
For reference, I’m adding the exact solver options used (and the associated
log files) for each of the above cases if it helps. (GAMG was used on the
system of equations arising out of the complex PDE but since I was unable
to get good convergence rates with GAMG for the real equivalent of the
same, I switched to Hypre which performed better. Hence I’m looking for a
way to set the reuse interpolation feature for this as well.)
Thank You,
Sajid Ali | PhD Candidate
Applied Physics
Northwestern University
s-sajid-ali.github.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_gamg
Type: application/octet-stream
Size: 24888 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_hmg
Type: application/octet-stream
Size: 57454 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_hmg.sh
Type: application/octet-stream
Size: 772 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_gamg.sh
Type: application/octet-stream
Size: 396 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_hypre
Type: application/octet-stream
Size: 43742 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_hypre.sh
Type: application/octet-stream
Size: 662 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200504/25fabf27/attachment-0011.obj>
More information about the petsc-users
mailing list