<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;"><br><div><blockquote type="cite"><div>On 13 Jan 2023, at 8:49 AM, Marius Buerkle <mbuerkle@web.de> wrote:</div><br class="Apple-interchange-newline"><div><div><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div> </div>

<div>I have a matrix A for which I defined the number of local rows per process manually using MatSetSizes. When I use MatConvert to change the matrix type it changes the number of local rows (to what one would get if MatSetSize is called with PETSC_DECIDE for number of local rows), which causes problems when doing MatVec producs and stuff like that. Is there any way to preserve the the number of local rows when using MatConvert?</div></div></div></div></blockquote><div><br></div><div>This is most likely a bug, it’s not handled properly in some MatConvert() implementations.</div><div>Could you please share either the matrix types or a minimal working example?</div><div><br></div><div>Thanks,</div><div>Pierre</div><div><br></div><blockquote type="cite"><div><div><div style="font-family: Verdana;font-size: 12.0px;"><div> </div>

<div>Best,</div>

<div>Marius</div></div></div>
</div></blockquote></div><br></body></html>