Suppress the warning of non-convergence

Hi all, I would like to know if there is a way to suppress the warning of non-convergence when using the built-in Newton solver in the Python API? I think we can only suppress this warning in the C++ API when I look through the source code.

Thanks in advance!

How about setting the LogLevel to Error. Ref: dolfinx/test_log.py at bc894b5ab586617caac779a4eba59193a939b7f1 · FEniCS/dolfinx · GitHub

1 Like