<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><div><div style="font-family: 'arial', 'helvetica', sans-serif; font-size: 12pt; color: #000000;" data-mce-style="font-family: 'arial', 'helvetica', sans-serif; font-size: 12pt; color: #000000;"><div><div>Dear PETSc team,<br><br>I hope this message finds you well.<br><br>I am currently using PETSc in a C++, where I rely on the nonlinear solvers `SNES` with either `newtonls` or `newtontr` methods. I would like to ask if it is possible to change the default norm used (typically the L2 Euclidean norm) to a custom norm, specifically the L2 norm in the sense of Lebesgue (e.g., involving cell-wise weighted integrals over the domain).<br><br>My main goal is to define a custom residual norm that better reflects the physical quantities of interest in my simulation.<br><br>Would this be feasible within the PETSc framework? If so, could you point me to the recommended approach (e.g., redefining the norm manually, using specific PETSc hooks or options)?<br><br>Thank you very much in advance for your help and for the great work on PETSc!<br><br>Best regards, <br><br><hr></div><div><span style="font-family: 'georgia', serif;" data-mce-style="font-family: 'georgia', serif;">Ali ALI AHMAD</span><br><span style="font-family: 'georgia', serif;" data-mce-style="font-family: 'georgia', serif;">PhD Student</span><br><span style="font-family: 'georgia', serif;" data-mce-style="font-family: 'georgia', serif;">University of Technology of Troyes - UTT - France</span><br><span style="font-family: 'georgia', serif;" data-mce-style="font-family: 'georgia', serif;">GAMMA3 Project - Office H008 - Phone No: +33 7 67 44 68 18</span><br><span style="font-family: 'georgia', serif;" data-mce-style="font-family: 'georgia', serif;">12 rue Marie Curie - CS 42060 10004 TROYES Cedex</span></div></div></div></div></div></div></body></html>