[petsc-users] norm L2 problemQuestion about changing the norm used in nonlinear solvers (L2 Euclidean vs. L2 Lebesgue)
Ali ALI AHMAD
ali.ali_ahmad at utt.fr
Wed Jun 11 03:45:27 CDT 2025
Dear PETSc team,
I hope this message finds you well.
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).
My main goal is to define a custom residual norm that better reflects the physical quantities of interest in my simulation.
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)?
Thank you very much in advance for your help and for the great work on PETSc!
Best regards,
Ali ALI AHMAD
PhD Student
University of Technology of Troyes - UTT - France
GAMMA3 Project - Office H008 - Phone No: +33 7 67 44 68 18
12 rue Marie Curie - CS 42060 10004 TROYES Cedex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250611/2cbfc607/attachment.html>
More information about the petsc-users
mailing list