volume/radius giving wrong results?
Bug #1088918 reported by
Marie Rognes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
FFC |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm puzzled: I would expect
from dolfin import *
mesh = UnitIntervalMesh(3)
volume = mesh.ufl_
radius = mesh.ufl_
print "volume = ", assemble(volume*dx, mesh=mesh)
print "radius = ", assemble(radius*dx, mesh=mesh)
to return 1.0 (in both cases). I do however get 1.0/3.
Can anyone reproduce? If yes, is my expectation wrong or
is really volume/circumradius wrong in FFC?
To post a comment you must log in.
The volume of each cell is 1/3, and integrating 1/3 over the unit interval yields 1/3. Sounds about right to me.