Mercurial > fem-fenics-eugenio
diff src/boundarycondition.h @ 173:9e944b0d0fc8
Some Formatting improvements (?)
author | gedeone-octave <marcovass89@hotmail.it> |
---|---|
date | Sat, 12 Oct 2013 16:06:00 +0100 |
parents | 5fe2a157f4eb |
children | 5e9b5bbdc56b |
line wrap: on
line diff
--- a/src/boundarycondition.h Mon Oct 07 21:52:17 2013 +0200 +++ b/src/boundarycondition.h Sat Oct 12 16:06:00 2013 +0100 @@ -28,9 +28,11 @@ public: - boundarycondition () : octave_base_value () {} + boundarycondition () + : octave_base_value () {} - void print (std::ostream& os, bool pr_as_read_syntax = false) const + void + print (std::ostream& os, bool pr_as_read_syntax = false) const { for (std::size_t i = 0; i < bcu.size (); ++i) os << "Boundary condition : " << bcu[i]->str (true) << std::endl; @@ -38,21 +40,29 @@ ~boundarycondition (void) {} - bool is_defined (void) const { return true; } + bool + is_defined (void) const + { return true; } - const std::vector< boost::shared_ptr <const dolfin::DirichletBC> > & get_bc (void) const - { return bcu; } + const std::vector< boost::shared_ptr + <const dolfin::DirichletBC> > & + get_bc (void) const + { return bcu; } - void add_bc (const boost::shared_ptr <const dolfin::FunctionSpace> & V, - boost::shared_ptr<const dolfin::GenericFunction> f, std::size_t n) - { - boost::shared_ptr<const dolfin::DirichletBC> p (new dolfin::DirichletBC (V, f, n)); - bcu.push_back(p); - } + void + add_bc (const boost::shared_ptr<const dolfin::FunctionSpace> & V, + boost::shared_ptr<const dolfin::GenericFunction> f, + std::size_t n) + { + boost::shared_ptr<const dolfin::DirichletBC> + p (new dolfin::DirichletBC (V, f, n)); + bcu.push_back(p); + } private: - std::vector<boost::shared_ptr <const dolfin::DirichletBC> > bcu; + std::vector<boost::shared_ptr + <const dolfin::DirichletBC> > bcu; DECLARE_OCTAVE_ALLOCATOR; DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA; @@ -62,5 +72,7 @@ static bool boundarycondition_type_loaded = false; DEFINE_OCTAVE_ALLOCATOR (boundarycondition); -DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (boundarycondition, "boundarycondition", "boundarycondition"); +DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (boundarycondition, + "boundarycondition", + "boundarycondition"); #endif