[petsc-users] Warning in PCCompositeAddPC

Rongliang Chen rongliang.chan at gmail.com
Thu Mar 10 17:06:35 CST 2011


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/20110310/76be68d4/attachment.htm>


More information about the petsc-users mailing list