Hello,
I think I have quite a similar problem, I'd like to do XFEM for linear elasticity, I defined the FE spaces like
Code:
Vh = VectorH1(mesh, order=1)
Vhx = XFESpace(Vh,ci)
VhG = FESpace([Vh,Vhx])
Now it hangs up when doing the neg() or pos() function like
Code:
u_std, u_x = VhG.TrialFunction()
u = [u_std + neg(u_x)]
saying
Code:
NgException: Dimensions don't match, op = + dims1 = 0: 2, dims2 = 0: 1
Is there a way to fix it, apart of using two FE spaces coordinatewise?
BR,
Nepomuk