← Back to team overview

dolfin team mailing list archive

Re: Function::cell()

 



Bartosz Sawicki wrote:
Before the function revolution there was method cell() inside the Function. I used it to determine index of current cell during assembly procedures, in eval() method. I realized that it disappeared now.
How similar functionality can be achieved today?


You'll need to use the eval variant

   void eval(double* values, const Data& data) const;

and you can then access the cell via

  const Cell& cell = data.cell();

Garth

regdr.
BArtek


_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




Follow ups

References