~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/function/UserFunction.h

  • Committer: Anders Logg
  • Date: 2008-03-17 14:59:36 UTC
  • mfrom: (2402.1.1 trunk)
  • Revision ID: logg@simula.no-20080317145936-buwlwbwp3tx74frg
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// First added:  2005-11-26
5
 
// Last changed: 2008-03-11
 
5
// Last changed: 2008-03-17
6
6
 
7
7
#ifndef __USER_FUNCTION_H
8
8
#define __USER_FUNCTION_H
34
34
    uint dim(uint i) const;
35
35
 
36
36
    /// Interpolate function to vertices of mesh
37
 
    void interpolate(real* values);
 
37
    void interpolate(real* values) const;
38
38
 
39
39
    /// Interpolate function to finite element space on cell
40
40
    void interpolate(real coefficients[],
41
41
                     const ufc::cell& cell,
42
 
                     const ufc::finite_element& finite_element);
 
42
                     const ufc::finite_element& finite_element) const;
43
43
 
44
44
    /// Evaluate function at given point
45
45
    void eval(real* values, const real* x) const;