← Back to team overview

ffc team mailing list archive

Compiling elements

 

I've tried to compile an element with DOLFIN wrappers, but the wrapper code is somewhat unexpected. From

    element = VectorElement("Lagrange", "triangle", 2)

with 'ffc -l dolfin'

I get

    class Velocity : public dolfin::Form
    {
    public:

      // Create form
      Velocity() : dolfin::Form()
      {
        _ufc_form = boost::shared_ptr<const ufc::form>(new UFC_Velocity());
      }

      // Destructor
      ~Velocity() {}

    };

FFC should generate a dolfin::FunctionSpace rather than a dolfin::Form.

Garth


Follow ups