<html><head></head><body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="ApplePlainTextBody">I don’t know if this is related, but the following example triggers a <br>[0]PETSC ERROR: Argument out of range<br>[0]PETSC ERROR: New nonzero at (0,1) caused a malloc<br>While everything works OK if I switch from MPISBAIJ to MPIBAIJ.<br><br>Thanks,<br>Pierre<br><br><object type="application/x-apple-msg-attachment" data="cid:E85E39B9-6B3F-4A31-8648-9D729FA1B75A" apple-inline="no" id="9BF41D0A-12E2-4F87-BE62-F6BE0615FF8F" height="84" width="65" apple-width="yes" apple-height="yes"></object><br><br><blockquote type="cite">On 2 Aug 2019, at 1:49 AM, Smith, Barry F. <bsmith@mcs.anl.gov> wrote:<br><br><br> Yes it is a bug, working on it now. <br><br><br><blockquote type="cite">On Aug 1, 2019, at 9:13 AM, Pierre Jolivet via petsc-dev <petsc-dev@mcs.anl.gov> wrote:<br><br>Hello,<br>The attached example is a little confusing for me.<br>How come I don’t get the same matrix out-of-the-box?<br>For me, the “correct” matrix is the SeqSBAIJ, how can I get MatMPISBAIJSetPreallocationCSR to assemble the same matrix?<br>Do I have to resort to first assembling SeqSBAIJ matrices and then calling MatCreateMPIMatConcatenateSeqMat if I don’t want to play around with my input arrays?<br><br>Thanks,<br>Pierre<br><br><foo.c><br></blockquote><br></blockquote><br></div></div></body></html>