~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/fem/UFC.h

  • Committer: Anders Logg
  • Date: 2008-06-09 21:06:51 UTC
  • mto: (2668.1.50 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080609210651-xrycs6vcqnrpb3as
Reset local tensor A^K before call to tabulate_tensor()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2007 Anders Logg.
 
1
// Copyright (C) 2007-2008 Anders Logg.
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// First added:  2007-01-17
5
 
// Last changed: 2007-05-15
 
5
// Last changed: 2008-06-09
6
6
 
7
7
#ifndef __UFC_DATA_H
8
8
#define __UFC_DATA_H
40
40
    /// Update current pair of cells for macro element
41
41
    void update(Cell& cell0, Cell& cell1);
42
42
 
 
43
    /// Reset tensor to zero
 
44
    inline void reset() { for (uint i = 0; i < num_entries; i++) A[i] = 0.0; }
 
45
 
43
46
    // Array of finite elements for primary arguments
44
47
    ufc::finite_element** finite_elements;
45
48
 
68
71
    UFCCell cell0;
69
72
    UFCCell cell1;
70
73
 
 
74
    // Number of entries in local tensor
 
75
    uint num_entries;
 
76
 
71
77
    // Local tensor
72
78
    real* A;
73
79