[petsc-users] Multigrid Vcycle.

Jed Brown jedbrown at mcs.anl.gov
Thu May 24 14:22:17 CDT 2012

On Thu, May 24, 2012 at 2:14 PM, Abdul Hanan Sheikh
<hanangul12 at yahoo.co.uk>wrote:

> Dear all,
> I am quit beginner in PETSc.
> I wrote a code for multigrid Vcycle (as preconditioer) by following the
> instructions on manual page.
> I want to see how much memory a Vcycle allocates by default in terms of
> number of matrices and vectors.
> I made a try to see by comparing with jacobi preconditioner, which surely
> allocates 1 vector ONLY.
> It turns out that a VCycle for FIVE (5) levels including coarsest level
> allocates memory for 53 vectors and
> subsequently it destroys too.

Some of those vectors are very small due to being on the coarse level.
There are also the vectors used by the outer Krylov method.

> Is it normal ??
> Thanks in advance,
> Abdul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120524/00c486ad/attachment.html>

More information about the petsc-users mailing list