~mapdes/ffc/pyop2

Viewing all changes in revision 1802.

  • Committer: Florian Rathgeber
  • Date: 2013-01-30 17:19:34 UTC
  • Revision ID: f.rathgeber10@imperial.ac.uk-20130130171934-4cmlzult0n4rjhp1
Special case tensor argument in kernel signature for pyop2 backend

The tensor argument in the kernel signature is a fixed-shape double
array with the shape of the local tensor. This does not work for the
case of a rank 0 tensor i.e. a scalar, since the tensor shape in this
case is empty. We use the shape (1,) instead in this case.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: