FacetArea evaluation fails if the form includes both a cell integral and an interior facet integral
Bug #862383 reported by
Martin Sandve Alnæs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
High
|
Anders Logg |
Bug Description
Reproduce with this script:
from dolfin import *
mesh = UnitSquare(3,3)
V = VectorFunctionS
v = TestFunction(V)
u = TrialFunction(V)
h_F = FacetArea(
# Ok:
a1 = h_F*dot(
A1 = assemble(a1)
# Fails:
a2 = a1 + inner(grad(u), grad(v))*dx
A2 = assemble(a2)
Changed in dolfin: | |
milestone: | none → 1.0-rc1 |
Changed in dolfin: | |
importance: | Undecided → High |
Changed in dolfin: | |
assignee: | nobody → Anders Logg (logg) |
Changed in dolfin: | |
status: | In Progress → Fix Committed |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Traceback (most recent call last): dorsal- unstable/ lib/python2. 7/site- packages/ dolfin/ fem/assembling. py", line 180, in assemble dorsal- unstable/ lib/python2. 7/site- packages/ dolfin/ cpp.py" , line 19792, in assemble *args)
File "facetareabug.py", line 17, in <module>
A2 = assemble(a2)
File "/opt/fenics/
add_values)
File "/opt/fenics/
return _cpp.assemble(
RuntimeError:
*** ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- /answers. launchpad. net/dolfin ------- ------- ------- ------- ------- ------- ------- ------- ------- --- s.cpp. ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** https:/
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------
*** Error: Unable to evaluate FacetArea expression.
*** Reason: Facet area is only defined on mesh boundaries.
*** Where: This error was encountered inside SpecialFunction
*** -------