[petsc-users] Slow speed when using PETSc multigrid

Jed Brown jedbrown at mcs.anl.gov
Wed Jun 6 21:33:49 CDT 2012


On Wed, Jun 6, 2012 at 4:21 PM, TAY wee-beng <zonexo at gmail.com> wrote:

> *call PCMGSetLevels(pc,mg_lvl,MPI_COMM_WORLD,ierr)*


The third arguments is an array of length mg_lvl, not a single
communicator. You can pass PETSC_NULL_OBJECT just like the man page says to
use the default.


>
>
> However, I get the error:
>
> Caught signal number 11 SEGV: Segmentation Violation, probably memory
> access out of range
>
> after calling *PCMGSetLevels*
>
> What's the problem? Is there any examples which I can follow?
>

I believe the other examples that use this routine are in C or just tests
(not tutorial-style) examples.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120606/4f1d624c/attachment.html>


More information about the petsc-users mailing list