[petsc-users] To store the RHS vector b of KSPSolve.

Xuefei (Rebecca) Yuan xyuan at lbl.gov
Tue Jan 17 14:51:30 CST 2012


Hello all,

I have a piece of code that need to store the RHS vector b of the ksp object via vecview.

However, the routine is like:


	ierr = DMMGSetSNESLocal(dmmg, FormFunctionLocal, FormJacobianLocal,0,0);CHKERRQ(ierr);
        ierr = DMMGSolve(dmmg);CHKERRQ(ierr);

The rhs evaluation is in FormFunctionLocal(), how could store the rhs vector b?

Thanks very much!

Cheers,

Rebecca





More information about the petsc-users mailing list