[petsc-users] Correct use of VecGetArray with std::vector
Victor Eijkhout
eijkhout at tacc.utexas.edu
Fri Feb 28 15:26:58 CST 2020
On , 2020Feb28, at 14:14, Jed Brown <Jed.Brown at Colorado.EDU<mailto:Jed.Brown at Colorado.EDU>> wrote:
Can't do this because std::vector can't be wrapped around existing memory.
That’s why I use gsl::span which ?will be in c++20?
Victor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200228/e973c5fb/attachment.html>
More information about the petsc-users
mailing list