Commits

Jed Brown committed b01bf4c Merge

Merge branch 'barry/fix-pc-use-amat'

* barry/fix-pc-use-amat:
-pc_use_amat: use PetscOptionsBool so it is shown in -help

  • Participants
  • Parent commits f151683, 8ef11f2

Comments (0)

Files changed (1)

src/ksp/pc/interface/pcset.c

   }
 
   ierr = PetscOptionsGetInt(((PetscObject)pc)->prefix,"-pc_reuse",&pc->reuse,NULL);CHKERRQ(ierr);
-  ierr = PetscOptionsGetBool(((PetscObject)pc)->prefix,"-pc_use_amat",&pc->useAmat,NULL);CHKERRQ(ierr);
+  ierr = PetscOptionsBool("-pc_use_amat","use Amat (instead of Pmat) to define preconditioner in nested inner solves","PCSetUseAmat",pc->useAmat,&pc->useAmat,NULL);CHKERRQ(ierr);
 
   if (pc->ops->setfromoptions) {
     ierr = (*pc->ops->setfromoptions)(pc);CHKERRQ(ierr);