On Thu, Aug 28, 2014 at 3:33 AM, TAY wee-beng <[email protected]> wrote:
> Hi, > > I've been using : > > call KSPSetOperators(ksp_semi_xyz,A_semi_xyz,A_semi_xyz,SAME_ > NONZERO_PATTERN,ierr) > > in my code for a long time when solving for the linear equations. > > However, recently I found that my code can't run properly (diverged, > segmentation fault). After debugging, I realised that I had to change from > the above to > > call KSPSetOperators(ksp_semi_xyz,A_semi_xyz,A_semi_xyz,ierr) > > May I know if something has changed in the new versions of PETSc? Yes, this is in the Changes file. We automatically determine whether the PC matrix has changed, and whether it has the same structure. Matt > > -- > Thank you > > Yours sincerely, > > TAY wee-beng > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
