[petsc-users] Warning in PCCompositeAddPC

Hui Zhang mike.hui.zhang at hotmail.com
Tue May 29 07:22:11 CDT 2012


Hi, 
I also have these warnings although I'm using latest petsc-dev. 

> You can ignore these warnings about 'const' for char *. I believe this is
> fixed in petsc-dev.
> 
>    Matt
> 
> > Hi PETSc experts,
> >
> > When I used the following functions:
> >
> > ierr = PCCompositeAddPC(finepc,PCSHELL);CHKERRQ(ierr);
> > ierr = PCCompositeAddPC(finepc,PCASM);CHKERRQ(ierr);
> > I got the following warning:
> >
> > joab.c:340: warning: passing argument 2 of ‘PCCompositeAddPC’ discards
> > qualifiers from pointer target type
> > joab.c:341: warning: passing argument 2 of ‘PCCompositeAddPC’ discards
> > qualifiers from pointer target type
> >
> > Can you tell me how to fix it?  Thank you.
> >
> > Best,
> >
> > Rongliang
> >
> > UCB
> >
> >


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120529/21a5ab5d/attachment.html>


More information about the petsc-users mailing list