Hello everyone,
I have assembled a 24x24 PETScMatrix from a cube, which has only eight nodes.
Is there a way that we can find the dof number of an entry in the global assembled matrix, M
?
from fenics import *
from ufl import j
import numpy as np
mesh = BoxMesh(Point(0,0,0), Point(1, 1, 1), 1, 1, 1)
Ve = VectorElement("CG", mesh.ufl_cell(), 1)
Space = FunctionSpace(mesh, Ve)
delta_u = TestFunction(Space)
u = TrialFunction(Space)
M = PETScMatrix()
assemble(delta_u[j]*u[j]*dx , tensor = M)