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