This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Help for the error, "Error: All dofmaps must have same block size (for now)"

+1 vote

Hi all,
When I run my code in my lab's server, which is on Debian, I got an error as following,
"RuntimeError: '*** Error: All dofmaps must have same block size (for now)'",
which is at the line,

n3_express = inner(grad(p),v)*dx
n3_mat = assemble(n3_express)

The whole codes related are posted as following,

import numpy as np
import math
from dolfin import *
## Build the fluid dynamic model
# Create mesh
nx = 6
ny = 6
mesh = UnitSquareMesh(nx, ny)
Lend = 0
Rend = 1
# Define function spaces
V = VectorFunctionSpace(mesh, "CG", 2)
Q = FunctionSpace(mesh, "CG", 1)
T = FunctionSpace(mesh, "CG", 1)
# Define test and trail functions
u = TrialFunction(V)
v = TestFunction(V)
p = TrialFunction(Q)
q = TestFunction(Q)
te = TrialFunction(T)
de = TestFunction(T)
n3_express = inner(grad(p),v)*dx
n3_mat = assemble(n3_express)
n3 = n3_mat.array()

It seems to be a very problem with the OS, since when I run my code in Ubuntu, there is no such error. How can I fix it? Thanks a lot for your help!

asked Aug 5, 2014 by Hrunx FEniCS Novice (910 points)

1 Answer

+4 votes
 
Best answer

Passes in 1.4.0 and fails in master. Rectangular forms were probably broken by Garth's changes in DOFmap numbering. I will report it.

answered Aug 5, 2014 by Jan Blechta FEniCS Expert (51,420 points)
selected Aug 5, 2014 by Hrunx

Reported as issue 352.

Would you mind if telling me the commit number for the Distribution 1.4.0 in the main branch? We are planning to install the Dolfin manually in our server, since it is no Debian. Thx a lot!

For each FEniCS component foo there is tag foo-1.4.0 in its GIT repo.

I have found them, so thx!

...