~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/kernel/fem/dolfin/NewFiniteElement.h

  • Committer: logg
  • Date: 2005-02-01 08:45:39 UTC
  • Revision ID: devnull@localhost-20050201084539-iipfjc00b32la5qc
Tailorized "2005-02-01 02:45:39 by logg"
Updates for new version of FFC, including work on functions (coefficients).
The remaining showstopper is getting FFC to correctly count and number
the coefficients of a form.

For testing, see the Poisson module. To get functions working, Form needs
to be initialized with the correct number of functions and each function
needs to be added (in the correct order) using Form::add(). This will
create a coupling between functions and coefficients.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    virtual unsigned int rank() const = 0;
39
39
 
40
40
    /// Return map from local to global degree of freedom
41
 
    virtual unsigned int dof(unsigned int i, const Cell& cell) const = 0;
 
41
    virtual unsigned int dof(unsigned int i, const Cell& cell, const Mesh& mesh) const = 0;
42
42
    
43
43
    /// Return map from local degree of freedom to global coordinate
44
 
    virtual const Point& coord(unsigned int i, const Cell& cell) const = 0;
 
44
    virtual const Point coord(unsigned int i, const Cell& cell, const Mesh& mesh) const = 0;
45
45
 
46
46
  };
47
47