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