~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/fem/SubSystem.cpp

  • 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:
33
33
//-----------------------------------------------------------------------------
34
34
SubSystem::SubSystem(const SubSystem& sub_system)
35
35
{
36
 
  for (uint i = 0; i < sub_system.sub_system.size(); i++)
37
 
    this->sub_system.push_back(sub_system.sub_system[i]);
 
36
  this->sub_system = sub_system.sub_system;
 
37
}
 
38
//-----------------------------------------------------------------------------
 
39
const SubSystem& SubSystem::operator= (const SubSystem& sub_system)
 
40
{
 
41
  this->sub_system = sub_system.sub_system;
 
42
  return *this;
38
43
}
39
44
//-----------------------------------------------------------------------------
40
45
dolfin::uint SubSystem::depth() const