(1) How can I modify the parameters of Newton solver in dolfinx? Specifically, I want to change the maximum_iterations. I know it is easy to realize in dolfin, but I could not find the corresponding parameter in dolfinx. Also, where could I find a list of all the parameters of Newton solver in dolfinx?
(2) In addition, I received a warning when I run a code with 4-node quadrilateral elements as follows:
Number of integration points per cell is: 225. Consider using 'quadrature_degree' to reduce number.
I would like to know how to fix this problem? And is not the default number of integration points of 4-node quadrilateral elements equal to 4 in dolfinx?
Say you have a first order quadrilateral element (both as you mesh, and function space).
Then the maximal polynomial degree of a single function in that space is 2.
Thus, if you assemble a mass matrix, you can end up with a 4th order polynomial (u*v).
An unstructured quadrilateral mesh is non affine, and the Jacobian used in the pull back is no longer a constant (it becomes a linear function).
Thus, when you want to assemble a mass matrix using linear elements on a quadrilateral, your integral is at least a fifth order polynomial, and you therefore need to choose your quadrature rule with that in mind.