~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/fem/DirichletBC.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 and Garth N. Wells.
 
1
// Copyright (C) 2007-2008 Anders Logg and Garth N. Wells.
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// Modified by Kristian Oelgaard, 2007
5
5
//
6
6
// First added:  2007-04-10
7
 
// Last changed: 2008-01-02
 
7
// Last changed: 2008-05-18
8
8
 
9
9
#ifndef __DIRICHLET_BC_H
10
10
#define __DIRICHLET_BC_H
113
113
    /// Make row associated with boundary conditions zero, useful for non-diagonal matrices in a block matrix. 
114
114
    void zero(GenericMatrix& A, const DofMap& dof_map, const ufc::form& form);
115
115
 
 
116
    /// Set (or update) value for sub system
 
117
    void setSubSystem(SubSystem sub_system);
 
118
 
116
119
    /// Return mesh
117
120
    Mesh& mesh();
118
121