[petsc-dev] PCReset_MG

Mark F. Adams mark.adams at columbia.edu
Mon Jul 23 18:56:21 CDT 2012


On Jul 23, 2012, at 7:25 PM, Jed Brown wrote:

> On Mon, Jul 23, 2012 at 2:58 PM, Mark F. Adams <mark.adams at columbia.edu> wrote:
> I'm trying to have PC_GAMG redo its setup (of MG) on every solve.  I call PCReset_MG, but looks like PCReset_MG does not reset
> 
> pc->setupcalled=0;
> 
> This is at the end of PCReset().
> 
> Where are you calling this from?

PCSetUp_GAMG

> Why use the private interface directly?

PCReset() resets the matrix apparently.  So the base class resets too much.

>  
> 
> And it seems like it should.  Am I right?  (I can push this, I just want to check that I'm not wrong.)
> 
> Mark
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120723/7b537261/attachment.html>


More information about the petsc-dev mailing list