<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 26, 2017 at 12:10 PM, D D <span dir="ltr"><<a href="mailto:driver.dan12@yahoo.com" target="_blank">driver.dan12@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18520">Why does MatAlloc_AIJ_CSR make two preallocation calls?<br></div><div id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18735"><br></div><div id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18719" dir="ltr">        CHKERR( MatSeqAIJSetPreallocationCSR(<wbr>A, i, j, v) )<br id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18724">        CHKERR( MatMPIAIJSetPreallocationCSR(<wbr>A, i, j, v) )<br id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18725"></div><div dir="ltr" id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18726"><br></div><div dir="ltr" id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18754">I am assuming memory if preallocated twice, once for sequential and another for MPI. So each matrix created with createAIJ will have a sequential and MPI structure.</div><div dir="ltr" id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18769"><br></div><div dir="ltr" id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18783">Is this for convenience when switching from sequential to MPI?</div></div></div></blockquote><div><br></div><div>Only one function will actually take affect, depending on the type of matrix A is. This is like Objective-C rather than C++.</div><div><br></div><div>  Thanks,</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><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div dir="ltr" id="m_8172148363751200006yui_3_16_0_ym19_1_1493214000562_18787">Thanks,</div><div dir="ltr">Dale<br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">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</div>
</div></div>