What I did is
- Create some PC named pc, and PCSetOperators(pc,A,A,..);
- Create KSP named ksp;
- KSPSetPC(ksp,pc);
After the above process, am I still obliged to KSPSetOperators(ksp,A,A,..), or I can skip this? From the source code of Petsc, it seems I do not need. Just want to make sure.
Thanks!