<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1493214000562_18520">Why does MatAlloc_AIJ_CSR make two preallocation calls?<br></div><div id="yui_3_16_0_ym19_1_1493214000562_18735"><br></div><div id="yui_3_16_0_ym19_1_1493214000562_18719" dir="ltr"> CHKERR( MatSeqAIJSetPreallocationCSR(A, i, j, v) )<br id="yui_3_16_0_ym19_1_1493214000562_18724"> CHKERR( MatMPIAIJSetPreallocationCSR(A, i, j, v) )<br id="yui_3_16_0_ym19_1_1493214000562_18725"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1493214000562_18726"><br></div><div dir="ltr" id="yui_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="yui_3_16_0_ym19_1_1493214000562_18769"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1493214000562_18783">Is this for convenience when switching from sequential to MPI?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1493214000562_18785"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1493214000562_18787">Thanks,</div><div dir="ltr">Dale<br></div></div></body></html>