VecDuplicateVecsF90(Vec x,PetscInt n,{Vec, pointer :: y(:)},integer ierr)Collective on Vec Many br
x | - a vector to mimic Many br | |
n | - the number of vectors to obtain Many br |
y | - Fortran90 pointer to the array of vectors Many br | |
ierr | - error code Many br |
Vec x Vec, pointer :: y(:) .... call VecDuplicateVecsF90(x,2,y,ierr) call VecSet(y(2),alpha,ierr) call VecSet(y(2),alpha,ierr) .... call VecDestroyVecsF90(2,y,ierr)Many br
Use VecDestroyVecsF90() to free the space. Many br
Many br
Level:beginner
Location:src/vec/vec/interface/rvector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages