<div dir="ltr"><div><br></div><div>I am trying to solve a nonlinear problem using NASM, and see the code in  petsc/src/snes/impls/nasm/nasm.c. However, I feel confused about how subsnes for each subdomain gets its own function, and I can not find anything like SNESSetFunction(subsnes,......). Could you show me which line subsnes gets its own function in nasm.c? </div><div><br></div><div>In addition, I would like to set up something using SNESNASMSetSubdomains_NASM (). Is there any example showing how to set subsnes, iscatter, oscatter,gscatter? Thanks!</div><div><br></div><div>PetscErrorCode SNESNASMSetSubdomains_NASM(SNES snes,PetscInt n,SNES subsnes[],VecScatter iscatter[],VecScatter oscatter[],VecScatter gscatter[])</div><div><br></div></div>

<br>
<div><hr></div><font face="Arial" size="1">This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.</font>