<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">In the process of upgrading our code to version 3.23, we have run into another issue, this time with nest matrices.<div><br></div><div>In previous versions (well to at least 3.21) it was perfectly fine to pass in null matrix blocks to create a nest matrix. There are situations where we have, for example, only diagonal blocks. That should be allowed and was and worked fine.</div><div><br></div><div>In petsc 3.23, that no longer is true, or perhaps we do not know what is the proper way to pass in a null matrix.</div><div><br></div><div>The attached example reproduces this with the following error:</div><div><br></div><div><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">[0]PETSC ERROR: Configure options: --force --with-clean=1 --with-scalar-type=complex --with-debugging=1 --with-fortran=1 --download-mpich=1 --with-cxx=0<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">[0]PETSC ERROR: #1 PetscObjectReference() at /home/rmackie/PETSc/petsc/src/sys/objects/inherit.c:620<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">[0]PETSC ERROR: #2 MatNestSetSubMats_Nest() at /home/rmackie/PETSc/petsc/src/mat/impls/nest/matnest.c:1407<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">[0]PETSC ERROR: #3 MatNestSetSubMats() at /home/rmackie/PETSc/petsc/src/mat/impls/nest/matnest.c:1518<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">[0]PETSC ERROR: #4 MatCreateNest() at /home/rmackie/PETSc/petsc/src/mat/impls/nest/matnest.c:1800<o:p></o:p></span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">[0]PETSC ERROR: #5 matnest_bug_reproducer.F90:48</span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;"><br></span></p><p class="MsoNormal" style="font-size: 12pt; margin: 0in; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;"><br></span></p><p class="MsoNormal" style="margin: 0in;"><span style="font-family: Aptos, sans-serif; font-size: 14.666667px;">Thanks for helping with this, and thanks for all the work on the Fortran </span><font face="Aptos, sans-serif"><span style="font-size: 14.666667px;">interfaces - I’ve been playing around with your new branch and am excited by all the work!</span></font></p><p class="MsoNormal" style="margin: 0in;"><font face="Aptos, sans-serif"><span style="font-size: 14.666667px;"><br></span></font></p><p class="MsoNormal" style="margin: 0in;"><font face="Aptos, sans-serif"><span style="font-size: 14.666667px;">Randy</span></font></p><p class="MsoNormal" style="margin: 0in;"><font face="Aptos, sans-serif"><span style="font-size: 14.666667px;"></span></font></p></div></body></html>