Comment 1 for bug 1187366

Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

I overlooked the first error (below) though. Between callbacks to replay_cb and eval_cb I get a missing cell problem. Probably fixable through attaching the mesh somewhere, I'll let you know.

/// Replay#0 at 0 of up0:0:1:Forward, ||up0:0:1:Forward|| = 8.28722
Unable to extract common cell; missing cell definition in form or expression.
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 314, in 'calling callback function'
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/libadjoint/libadjoint.py", line 544, in cfunc
    output_c[0] = self(adjointer, timestep, dependencies, values)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/dolfin_adjoint/functional.py", line 84, in __call__
    return dolfin.assemble(functional_value)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/dolfin/fem/assembling.py", line 169, in assemble
    common_cell=common_cell)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/dolfin/fem/form.py", line 56, in __init__
    common_cell)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 154, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/ffc/jitcompiler.py", line 77, in jit
    return jit_form(ufl_object, parameters, common_cell)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/ffc/jitcompiler.py", line 155, in jit_form
    element_mapping = _compute_element_mapping(form, common_cell)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/ffc/jitcompiler.py", line 106, in _compute_element_mapping
    common_cell = extract_common_cell(form, common_cell)
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/ufl/algorithms/preprocess.py", line 416, in extract_common_cell
    error("Unable to extract common cell; "\
  File "/home/martinal/opt/fenics/dorsal-hpc-unstable-27022013/lib/python2.7/site-packages/ufl/log.py", line 154, in error
    raise self._exception_type(self._format_raw(*message))
ufl.log.UFLException: Unable to extract common cell; missing cell definition in form or expression.
/// J evaluated #0: 0