<div>Hi guys,</div><div><br></div><div>In directory: /src//src/dm/impls/mesh/, we can find a file named "mesh.c", where a function called "DMDestroy_Mesh(DM dm)", which has the following code:</div><div><br></div><div>PetscErrorCode DMDestroy_Mesh(DM dm)</div><div><div> {</div><div>   DM_Mesh       *mesh = (DM_Mesh *) dm->data;</div><div><br></div><div>   mesh->m = PETSC_NULL;</div><div>   VecScatterDestroy(&mesh->globalScatter);</div><div>    return(0);</div><div> }</div></div><div><br></div><div>When we destroy SieveMesh,  this function will be called. In this function, we just set "mesh->m = PETSC_NULL", Whether memory occupied by SieveMesh will be free? I don't think so!</div><div><br></div><div>Thus, there are anyone who have an idea on how to free SieveMesh memory.</div><div><br></div><div>Regards,</div><div><sign signid="2"><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div>Fande Kong</div><div>ShenZhen Institutes of Advanced Technology</div><div>Chinese Academy of Sciences</div>
</div></sign></div><div> </div>