[petsc-users] Does an array obtained with VecGetArray remain valid after vec's values changed?

Dominik Szczerba dominik at itis.ethz.ch
Mon Oct 31 10:11:10 CDT 2011


In the documentation of VecGetArray I read that it returns a pointer
to the local data array and does not use any copies. Does this mean,
that changing the values of the vector followed by
VecAssemblyBegin/End does NOT invalidate the pointer? In other words,
do I need to re-get the array when vec's values are changed?

Thanks,
Dominik


More information about the petsc-users mailing list