<div dir="ltr">Dear Petsc team,<div><br></div><div>In order to create a parallel matrix and solve by KSP, is it possible to directly use MatSetValues() in runtime when each matrix entry is just created  without MatMPIAIJSetPreallocation()?</div><div><br></div><div>I mean, when you only know the global size of Mat, and the number of nonzeros per row is not constant neither for all rows nor during time, is it possible to set the singular entries into Mat one by one after creating each one?</div><div><br></div><div>Thanks</div><div>Massoud</div><div><br></div><div><br></div><div><br></div><div> </div><div><br></div><div><br></div></div>