#include "petscvec.h" PetscErrorCode VecSetOperation(Vec vec,VecOperation op, void (*f)(void))Logically Collective on Vec
vec | - the vector | |
op | - the name of the operation | |
f | - the function that provides the operation. |
PetscErrorCode userview(Vec,PetscViewer);
ierr = VecCreateMPI(comm,m,M,&x);
ierr = VecSetOperation(x,VECOP_VIEW,(void(*)(void))userview);
This function is not currently available from Fortran.
Level:advanced
Location:src/vec/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages