[petsc-users] questions about parallel vectors

2011-04-29 Thread Shri
- Original Message - > Hello everyone, > > I am trying to create a sparse matrix A, which depends on a parallel > vector v. For example, my function looks like this: Mat > myfun(MPI_Comm comm, Vec v, other parameters). When I set the value > A(i,j) = v[k], v[k] may not be obtained by Vec

[petsc-users] questions about parallel vectors

2011-04-29 Thread Xiangdong Liang
Hello everyone, I am trying to create a sparse matrix A, which depends on a parallel vector v. For example, my function looks like this: Mat myfun(MPI_Comm comm, Vec v, other parameters). When I set the value A(i,j) = v[k], v[k] may not be obtained by VecGetValues since that operation can only ge