~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/fem/SubSystem.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:
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