comparison src/boundarycondition.h @ 258:ab35a8b0deef

Support storage of mesh markers via meshfunction
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Fri, 01 Aug 2014 18:59:18 +0200
parents 5e9b5bbdc56b
children 61830a4f9ab9
comparison
equal deleted inserted replaced
257:fb67b636616f 258:ab35a8b0deef
58 SHARED_PTR <const dolfin::DirichletBC> 58 SHARED_PTR <const dolfin::DirichletBC>
59 p (new dolfin::DirichletBC (V, f, n)); 59 p (new dolfin::DirichletBC (V, f, n));
60 bcu.push_back(p); 60 bcu.push_back(p);
61 } 61 }
62 62
63 void
64 add_bc (SHARED_PTR <dolfin::FunctionSpace const> const & V,
65 SHARED_PTR <dolfin::GenericFunction const> f,
66 SHARED_PTR <dolfin::MeshFunction <std::size_t> const> const & sd,
67 std::size_t n)
68 {
69 SHARED_PTR <dolfin::DirichletBC const>
70 p (new dolfin::DirichletBC (V, f, sd, n));
71 bcu.push_back(p);
72 }
73
63 private: 74 private:
64 75
65 std::vector<SHARED_PTR 76 std::vector<SHARED_PTR
66 <const dolfin::DirichletBC> > bcu; 77 <const dolfin::DirichletBC> > bcu;
67 78