- removed responsible
- edited description
_attach_integral_metadata modifies input form and changes jit signature of subsequent recompilation
Issue #76
resolved
It should rather reconstruct the integrals with new metadata.
The resulting spurious jit compilation is annoying but not critical.
Reproducing script with diagnostics:
from dolfin import *
mesh = UnitSquareMesh(1, 1)
V = FunctionSpace(mesh, 'CG', 3)
f = Function(V)
M = f*dx(degree=1)
from ffc.jitcompiler import _check_parameters
from ffc.jitobject import JITObject
before = dict(M.integrals()[0].metadata())
assemble(M) # Bug: Modifies M as side effect
after = M.integrals()[0].metadata()
# Symptom:
print before
print after
print before is after
assert before == after # Fails, and this causes spurious jit recompilation
Comments (8)
-
reporter -
reporter -
assigned issue to
-
assigned issue to
-
reporter I don't think I have time before 1.6, so considering this won't affect most users and does not change the computed result I'll post phone to 1.7.
-
reporter - changed milestone to 1.7
-
reporter - removed milestone
- removed responsible
-
reporter - changed milestone to 1.7
-
assigned issue to
- marked as blocker
I think this is the source of spurious and hard to track signature changes I get while trying to merge this:
https://bitbucket.org/fenics-project/ufl/pull-requests/40/split-form-grouping-out-of/diff
so it's about time it gets fixed.
-
reporter - changed status to resolved
-
- removed milestone
Removing milestone: 1.7 (automated comment)
- Log in to comment