Assemble Jacobian matrix.
(self, x, A)
| 49 | set_bc(b, [self.bc], x, -1.0) |
| 50 | |
| 51 | def J(self, x, A): |
| 52 | """Assemble Jacobian matrix.""" |
| 53 | from dolfinx.fem.petsc import assemble_matrix |
| 54 | |
| 55 | A.zeroEntries() |
| 56 | assemble_matrix(A, self.a, bcs=[self.bc]) |
| 57 | A.assemble() |
| 58 | |
| 59 | def matrix(self): |
| 60 | """Create a PETSc matrix for the problem.""" |
nothing calls this directly
no test coverage detected