~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to site-packages/dolfin/fem/formmanipulations.py

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        elif isinstance(u, (list,tuple)) and all(isinstance(w, Function) for w in u):
62
62
            V = MixedFunctionSpace([w.function_space() for w in u])
63
63
            du = ufl.split(Argument(V))
 
64
        else:
 
65
            cpp.dolfin_error("formmanipulation.py",
 
66
                             "compute derivative of form",
 
67
                             "Cannot automatically create third argument, please supply one")
 
68
 
64
69
    return ufl.derivative(form, u, du)
65
70
 
66
71
derivative.__doc__ = ufl.derivative.__doc__