On Mon, Oct 17, 2011 at 4:03 PM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Vec seems to be meant for only real numbers. I need to have a parallel vector containing integers. Most of them are indices, but some of them would be arbitrary. Questions:<div><br></div><div>1) Is 'IS' supposed to be a parallel/distributed vector of indices? Syntax to use it is very different from that of Vec. E.g. I see functions to query global and local size, but can not find functions to specify them. How to scatter/gather such objects? Scatter seems only for Vec's.</div>
<div><br></div><div>2) How about arbitrary parallel vectors of integers?</div></blockquote><div><br></div><div>Right now, PETSc just does not have this. There is an ongoing discussion about implementation.</div><div><br>
</div><div>For now, putting integers in a Vec is the best option.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
Many thanks for any pointers,</div><div>Dominik</div></blockquote></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>