<div dir="ltr">Hello everyone,<div><br></div><div>I have two quick questions about src/snes/examples/tutorials/ex3.c.</div><div><br></div><div>1) In line 150-151, why do we need to call MatSeqAIJSetPreallocation before MatMPIAIJSetPreallocation? I found that without the seqaij call, the program crashed. However, the mat J we want to create is the mpiaij.</div>
<div><br></div><div>2) In line 390-397, it sets the values of the residue function at the boundary. Where do these values come from? In other words, I am not clear about ff[0]=xx[0] and ff[xs+xm-1] = xx[xs+xm-1] - 1.0;</div>
<div><br></div><div>Thank you.</div><div><br></div><div>Xiangdong</div></div>