[petsc-users] no decrease in iteration counts of KSPCG during time stepping

Alp Kalpalp alpkalpalp at gmail.com
Sat Dec 27 04:00:00 CST 2014


Hi,

I implemented a newmark time stepping algorithm without using TS structure.
I am following ex59 about PCBDDC.

ComputeMatrix
ComputeKSPBDDC

for // a time loop
{
Compute RHS
KSPSolve
GatherResults
MoveToNextTS
}


However, when I watch the iteration counts of KSPSolve they do not decrease
signicantly..Decrease was around 5%.

So I have some problems;

1-) I guess currently, factorization is not taking place for each time step
in my code. Ok this is expected. But I wonder whether Kspsolve stores the
Krylov subspace vectors and reuse them for the next time step.

2-) PCBDDC uses KSPCG and AFAIK petsc doesnot have preconditioned conjugate
projected gradient (PCPG). Is it possible to simulate PCPG iteration in
some way?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141227/ef2fb9b2/attachment.html>


More information about the petsc-users mailing list