<div dir="ltr">Maybe create the large matrix and use  <a href="https://www.mcs.anl.gov/petsc/petsc-3.7/docs/manualpages/Mat/MatGetSubMatrix.html">https://www.mcs.anl.gov/petsc/petsc-3.7/docs/manualpages/Mat/MatGetSubMatrix.html</a><br>with MAT_REUSE_MATRIX.<br><br>Or pad the IS arguments to MatGetSubMatrix with -1, so the size is correct and PETSc should ignore -1, and use MAT_INITIAL_MATRIX.<br><br>Others may know what will work.<br><br>Good luck,<br>Mark<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 1, 2023 at 5:26 AM 김성익 <<a href="mailto:ksi2443@gmail.com">ksi2443@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div><br></div><div>I want to put small matrix to large matrix.</div><div>The schematic of operation is as below.</div><div><img src="cid:ii_ldlivw470" alt="image.png" width="542" height="198"><br></div><div>Is there any function for put small matrix to large matrix at once?</div><div><br></div><div>Thanks,</div><div>Hyung Kim</div></div>
</blockquote></div>