range check on VecGetArray

Fredrik Bengzon fredrik.bengzon at math.umu.se
Wed Feb 11 13:49:47 CST 2009


Hi,
When using VecGetArray(vec, &ptr2vec) on a vector, vec, with ghost 
nodes, is there a way of getting the size (length) of the ptr2vec array? 
In other words, how can I avoid out-of-range errors when accessing 
elements of ptr2vec?
Best Regards
Fredrik Bengzon, Umeå, Sweden


More information about the petsc-users mailing list