<div dir="ltr"><div>I'll get this stuff out of MatCoarsen and PCGAMG.  I will note that users/developers wouldn't do this if there were a good way of taking indices or proc/index pairs out of scatters.</div><div><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px">One thought on —with-64-bit-indices —with-precision=single: reducing over</span> 4 billion floats sounds like a bad time.</div><div><br></div><div>- Peter</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 8, 2014 at 5:52 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Sat, Feb 8, 2014 at 5:40 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
   It appears people have been assuming sizeof(PetscInt) <= sizeof(PetscScalar) right and left in the code (to take advantage of VecScatter functionality). This is most definitely not true with —with-64-bit-indices —with-precision=single<br>


<br>
MatGetBrowsOfAoCols_MPIAIJ<br>
PCGAMGProlongator_Classical_Standard<br>
maybe others<br>
<br>
VecScatters are for moving Vec elements around, they are not a replacement for MPI calls!<br>
<br>
Please don’t do this in the future.</blockquote><div><br></div></div></div><div>Please please please use PetscSF if you have regular layouts, and PetscSection for irregular layouts.</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">
<span><font color="#888888"><br>
   Barry<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></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
</font></span></div></div>
</blockquote></div><br></div>