<div dir="ltr">Hi,<div><br></div><div>I am using DMCreateMatrix to create matrix from a existed DM object and defined stencil.</div><div>In my code, boundary nodes need to involve many inner nodes, thus matrix rows corresponding to boundary nodes are almost dense. How can I  tell petsc that those rows need to be preallocated with more entries? I don't want to use MatMPIAIJSetPreallocation() since advantages of DM might be lost.</div><div><br></div><div>Many thanks.</div><div><br></div><div>Sam.</div><div><br></div><div> </div></div>