AE= assemble(aE)
bE = assemble(LE)
bc1.apply(AE,bE)
Let me put it simpler.
I can't apply essential bcs when assembled matrix is non square in UBUNTU FENICS but it works in Windows FENICS.
The only difference is that the assembled matrix in UBUNTU is PETScMATRIX type and in Windows it is UBlasMatrix type.
The error shows:
PETSC ERROR: Object is in wrong state!
PETSC ERROR: Matrix is missing diagonal entry.
I wonder why when the type of AE matrix changes from uBLASMatrix into PETScMatrix,
the bc.apply command can't work properly anymore for a non square matrix.
Any solution to deal with this?
Thanks so much.