[petsc-dev] Possible bug in PCFIELDSPLIT

Smith, Barry F. bsmith at mcs.anl.gov
Wed Jan 10 09:43:58 CST 2018


   Are you pointing out there is a missing atype == in the inner check and it should be 

> atype ==
> MAT_SCHUR_COMPLEMENT_AINV_DIAG ? "" :
> (atype == MAT_SCHUR_COMPLEMENT_AINV_BLOCK_DIAG ? "block " : "lumped

?



> On Jan 10, 2018, at 6:52 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> 
> /home/devel/petsc/dev/src/ksp/pc/impls/fieldsplit/fieldsplit.c:176:275:
> warning: enum constant in boolean context [-Wint-in-bool-context]
>       ierr = PetscViewerASCIIPrintf(viewer,"  Preconditioner for the
> Schur complement formed from Sp, an assembled approximation to S,
> which uses A00's %sdiagonal's inverse\n",atype ==
> MAT_SCHUR_COMPLEMENT_AINV_DIAG ? "" :
> (MAT_SCHUR_COMPLEMENT_AINV_BLOCK_DIAG ? "block " : "lumped
> "));CHKERRQ(ierr);break;
> 
> 
> -- 
> Lisandro Dalcin
> ============
> Research Scientist
> Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
> Extreme Computing Research Center (ECRC)
> King Abdullah University of Science and Technology (KAUST)
> http://ecrc.kaust.edu.sa/
> 
> 4700 King Abdullah University of Science and Technology
> al-Khawarizmi Bldg (Bldg 1), Office # 0109
> Thuwal 23955-6900, Kingdom of Saudi Arabia
> http://www.kaust.edu.sa
> 
> Office Phone: +966 12 808-0459



More information about the petsc-dev mailing list