1
/*$Id: none.c,v 1.30 2001/03/23 23:23:06 balay Exp $*/
3
Identity preconditioner, simply copies vector x to y.
5
#include "src/sles/pc/pcimpl.h" /*I "petscpc.h" I*/
8
#define __FUNCT__ "PCApply_None"
9
int PCApply_None(PC pc,Vec x,Vec y)
14
ierr = VecCopy(x,y);CHKERRQ(ierr);
15
PetscFunctionReturn(0);
20
#define __FUNCT__ "PCCreate_None"
21
int PCCreate_None(PC pc)
24
pc->ops->apply = PCApply_None;
25
pc->ops->applytranspose = PCApply_None;
29
pc->ops->applysymmetricleft = PCApply_None;
30
pc->ops->applysymmetricright = PCApply_None;
33
PetscFunctionReturn(0);