<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;"> <div> PETSc 2.23 introduced some incompatibilities in the Fortran bindings with previous versions of PETSc. </div><div><br></div><div> As part of upgrading Fortran code for use with PETSc 2.23 the suffix F90 should be removed from all PETSc Fortran calls; for routines such as <span style="background-color: rgb(245, 228, 0); font-family: 微软雅黑;">DMDAVecGetArrayF90() no other changes are needed to the function call. The array arguments remain Fortran pointers to arrays.</span></div><div><br></div><div> Barry</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Mar 31, 2025, at 3:12 PM, Zhao-Yi Yan <13971216897@163.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><div style="line-height:"><div style="font-family: 微软雅黑;"><div><br></div><div>Hi, Dear developers,</div><div><br></div><div>I am using 3.22.4 and find that</div><div><br></div><div><span style="background-color: rgb(245, 228, 0);"> DMDAVecGetArrayF90 </span></div><div><br></div><div>should be used in pair with <br></div><div><br></div><div><span style="background-color: rgb(245, 228, 0);">DMDAVecRestoreArrayF90 </span></div><div><br></div><div>And should <span style="background-color: rgb(63, 68, 206);">NOT</span> be used in pair with</div><div><br></div><div><span style="background-color: rgb(245, 228, 0);"> DMDAVecRestoreArray </span></div><div><br></div><div>Otherwise, strange memory leakage can be caused.</div><div><br></div><div>I know F90-style function has been discarded in 3.23 version. So this is a simply record mail; However, it is appreciated if any comment feedback.</div><div><br></div><div>Best regard,</div><div><br></div><div>Zhao-Yi Yan</div><div> <br></div><div> <br></div><div spellcheck="false" id="ntes-pcmac-signature" style="font-family:微软雅黑" data-ntes-signature="true"><div style="font-size:14px;padding:0;margin:0"></div></div></div><!--😀--></div></div></blockquote></div><br></div></body></html>