~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/fem/SubSystem.h

  • Committer: Anders Logg
  • Date: 2008-05-18 20:10:23 UTC
  • mto: (2668.7.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080518201023-q5sec18uepjnjw4f
Add new function DirichletBC::setSubSystem(), allowing modification
of the sub system for which a BC has been set.

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-04-24
5
 
// Last changed: 2007-04-27
 
5
// Last changed: 2008-05-18
6
6
 
7
7
#ifndef __SUB_SYSTEM_H
8
8
#define __SUB_SYSTEM_H
40
40
 
41
41
    /// Copy constructor
42
42
    SubSystem(const SubSystem& sub_system);
43
 
    
 
43
 
 
44
    /// Assignment operator
 
45
    const SubSystem& operator= (const SubSystem& sub_system);
 
46
 
44
47
    /// Return number of levels for nested sub system
45
48
    uint depth() const;
46
49
    
50
53
 
51
54
    /// Return array which defines sub system
52
55
    const Array<uint>& array() const
53
 
      { return sub_system; }
 
56
    { return sub_system; }
54
57
 
55
58
  private:
56
59
 
57
 
 
58
60
    // Recursively extract sub finite element
59
61
    static ufc::finite_element* extractFiniteElement
60
62
    (const ufc::finite_element& finite_element, const Array<uint>& sub_system);