Hi, I used fenics-dolfinx-0.7.1 to assemble the matrix with the following code:
B = assemble_matrix(form(b), bcs=[bc])
B.assemble()
The error occurred:
AttributeError: ‘MatrixCSR’ object has no attribute ‘assemble’.
Hi, I used fenics-dolfinx-0.7.1 to assemble the matrix with the following code:
B = assemble_matrix(form(b), bcs=[bc])
B.assemble()
The error occurred:
AttributeError: ‘MatrixCSR’ object has no attribute ‘assemble’.
You are using the built in matrix (from dolfinx.fem, not dolfinx.fem.petsc) which has another signature, see Rename ‘MatrixCSR::finalize’ to ‘MatrixCSR::scatter_rev’ by chrisrichardson · Pull Request #2732 · FEniCS/dolfinx · GitHub