[petsc-users] Petsc has generated inconsistent data - Divide by zero!

Jed Brown jedbrown at mcs.anl.gov
Fri Jul 8 08:34:23 CDT 2011


On Fri, Jul 8, 2011 at 08:26, TAY wee-beng <zonexo at gmail.com> wrote:

> [0]PETSC ERROR: KSPSolve_BCGS() line 75 in
> src/ksp/ksp/impls/bcgs/C:\Codes\PETSC
> -~1.1-P\src\ksp\ksp\impls\bcgs\bcgs.c
>

    ierr = KSP_PCApplyBAorAB(ksp,P,V,T);CHKERRQ(ierr);  /*   v <- K p
    */
    ierr = VecDot(V,RP,&d1);CHKERRQ(ierr);
    if (d1 == 0.0) SETERRQ(PETSC_ERR_PLIB,"Divide by zero");

I suspect your preconditioner is singular. What options are you running
with? What happens if you use -ksp_type gmres -ksp_gmres_restart 1000
-ksp_gmres_modifiedgramschmidt -ksp_monitor_true_residual? Also do the same
run with -ksp_type fgmres.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110708/0a6622b3/attachment-0001.htm>


More information about the petsc-users mailing list