[petsc-users] Is PCFactorSetZeroPivot() effective?

Jed Brown jedbrown at mcs.anl.gov
Fri Jun 1 09:35:48 CDT 2012


On Fri, Jun 1, 2012 at 9:27 AM, Jozsef Bakosi <jbakosi at lanl.gov> wrote:

> I mean I grab one node with a Dirichlet condition and apply a Neumann on
> all boundaries, i.e. the problem is well-posed: the additive constant,
> up to which the solution is determined, is accounted for.
>

This is fragile because smoothed aggregation can "coarsen out" this
constraint. We usually recommend informing the KSP of the null space. See
the section of the user's manual on solving singular systems.


>
> > > I did another test and set the PETSC_OPTIONS environment variable to
> > > '-options_table -options_left', then I get:
> > >
> > > ...
> > >
> > > [49]PETSC ERROR: Zero pivot row 537 value 9.36276e-13 tolerance 1e-12!
> > >
> >
> > This is an error. How do you get to the output shown below?
>
> I'm not sure if I understand your question. I set PETSC_OPTIONS
> environment variable to '-options_table -options_left'.
>

You must not have been checking errors or something because the code
evidently continued past the error, getting all the way to PetscFinalize().


> It seems like your suggestion
>
> -mg_coarse_redundant_pc_factor_zeropivot <2.22045e-14>: Pivot is
> considered zero if less than (PCFactorSetZeroPivot)
>
> remedies the problem as I'm not getting the zeropivot error anymore. I
> guess the problem was at the coarsest MG level. I set
> mg_coarse_redundent_pc_factor to 1.0e-20 and that helped.
>

Yes, but is the convergence good now?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120601/0cd5e099/attachment.html>


More information about the petsc-users mailing list