~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/fem/DirichletBC.cpp

  • Committer: Kent-Andre Mardal
  • Date: 2008-05-19 14:21:52 UTC
  • mfrom: (2668.5.1 trunk)
  • mto: (2668.1.16 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: kent-and@simula.no-20080519142152-7zb7r4htl7111izh
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Modified by Kristian Oelgaard, 2007
5
5
//
6
6
// First added:  2007-04-10
7
 
// Last changed: 2008-04-22
 
7
// Last changed: 2008-05-18
8
8
 
9
9
#include <dolfin/common/constants.h>
10
10
#include <dolfin/log/log.h>
30
30
                         SubDomain& sub_domain,
31
31
                         BCMethod method)
32
32
  : BoundaryCondition(), g(g), _mesh(mesh),
33
 
    sub_domains(0), sub_domain(0), sub_domains_local(false), method(method),
34
 
    user_sub_domain(&sub_domain)
 
33
    sub_domains(0), sub_domain(0), sub_domains_local(false),
 
34
    method(method), user_sub_domain(&sub_domain)
35
35
 
36
36
{
37
37
  // Initialize sub domain markers
44
44
                         BCMethod method)
45
45
  : BoundaryCondition(), g(g), _mesh(sub_domains.mesh()),
46
46
    sub_domains(&sub_domains), sub_domain(sub_domain), sub_domains_local(false),
47
 
    method(method)
 
47
    method(method), user_sub_domain(0)
48
48
{
49
49
  // Do nothing
50
50
}
69
69
                         BCMethod method)
70
70
  : BoundaryCondition(), g(g), _mesh(sub_domains.mesh()),
71
71
    sub_domains(&sub_domains), sub_domain(sub_domain), sub_domains_local(false),
72
 
    sub_system(sub_system), method(method)
 
72
    sub_system(sub_system), method(method), user_sub_domain(0)
73
73
{
74
74
  // Do nothing
75
75
}
78
78
                         Mesh& mesh,
79
79
                         BCMethod method)
80
80
  : BoundaryCondition(), g(g), _mesh(mesh),
81
 
    sub_domains(0), sub_domain(0), sub_domains_local(false), method(method),
82
 
    user_sub_domain(0)
 
81
    sub_domains(0), sub_domain(0), sub_domains_local(false),
 
82
    method(method), user_sub_domain(0)
83
83
{
84
84
  // Create sub domain for entire boundary
85
85
  class EntireBoundary : public SubDomain
483
483
  // Clear temporary arrays
484
484
  delete [] dofs;
485
485
}
486
 
 
 
486
//-----------------------------------------------------------------------------
 
487
void DirichletBC::setSubSystem(SubSystem sub_system)
 
488
{
 
489
  this->sub_system = sub_system;
 
490
}
 
491
//-----------------------------------------------------------------------------