<div dir="ltr"><div><div><div>Dear all<br><br></div>How does MatPreallocateInitialize/Finalize work?<br><br></div>I don't see any reference for examples in the<br>online manual, soI've browsed the source code <br>to see whetherthe routine is used and how<br><br></div><div>As far as I understood it works this way:<br><br>    call MatPreallocateInitialize(comm, rows, cols, d_nz,o_nz,ierr)<br></div><div><br></div><div>    ! do something to calculate d_nz and o_nz<br><br></div><div>    call MatXXXSetPreallocation<br></div><div>    call MatPreallocateFinalize<br><br></div><div>It is not that clear the way d_nz and o_nz are<br></div><div>computed. Do I need to provide them myself?<br></div><div>(in that case what would be the point of using <br>MatPreallocateInitialize/Finalize?)</div><div><br></div><div>Thanks<br></div><div>Ivano <br></div><div><br><br></div><div><br></div><a name="MatPreallocateInitialize"></a></div>