[petsc-users] Push Back in Vector

Jed Brown jed at 59A2.org
Thu Feb 25 10:23:27 CST 2010


On Thu, 25 Feb 2010 13:16:56 -0300, Pedro Torres <torres.pedrozpk at gmail.com> wrote:
> Hello,
> 
> There is function that work with Vector object similar to push_back() in
> STL?. If not, which is the best way to deal with this?.

What are you trying to do?  Vec is not a stack, queue, or dynamically
sized list-like structure, you have to decide what size it is (and it's
parallel layout) before using it.

Jed


More information about the petsc-users mailing list