diff src/boundarycondition.h @ 268:61830a4f9ab9

Improve formatting
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Thu, 14 Aug 2014 12:26:55 +0200
parents ab35a8b0deef
children
line wrap: on
line diff
--- a/src/boundarycondition.h	Tue Aug 12 15:42:50 2014 +0200
+++ b/src/boundarycondition.h	Thu Aug 14 12:26:55 2014 +0200
@@ -27,54 +27,54 @@
 class boundarycondition : public octave_base_value
 {
 
- public:
+public:
 
-  boundarycondition () 
+  boundarycondition ()
     : octave_base_value () {}
 
   void
-  print (std::ostream& os, bool pr_as_read_syntax = false) const
+  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;
+    for (std::size_t i = 0; i < bcu.size (); ++i)
+      { os << "Boundary condition : " << bcu[i]->str (true) << std::endl; }
   }
 
   ~boundarycondition (void) {}
 
   bool
   is_defined (void) const
-    { return true; }
+  { return true; }
 
-  const std::vector< SHARED_PTR 
-                   <const dolfin::DirichletBC> > &
-  get_bc (void) const 
-    { return bcu; }
+  const std::vector< SHARED_PTR
+    <const dolfin::DirichletBC> > &
+  get_bc (void) const
+  { return bcu; }
 
   void
   add_bc (const SHARED_PTR <const dolfin::FunctionSpace> & V,
           SHARED_PTR <const dolfin::GenericFunction> f,
           std::size_t n)
-    {
-      SHARED_PTR <const dolfin::DirichletBC> 
-        p (new dolfin::DirichletBC (V, f, n));
-      bcu.push_back(p);
-    }
+  {
+    SHARED_PTR <const dolfin::DirichletBC>
+      p (new dolfin::DirichletBC (V, f, n));
+    bcu.push_back (p);
+  }
 
   void
   add_bc (SHARED_PTR <dolfin::FunctionSpace const> const & V,
           SHARED_PTR <dolfin::GenericFunction const> f,
           SHARED_PTR <dolfin::MeshFunction <std::size_t> const> const & sd,
           std::size_t n)
-    {
-      SHARED_PTR <dolfin::DirichletBC const> 
-        p (new dolfin::DirichletBC (V, f, sd, n));
-      bcu.push_back(p);
-    }
+  {
+    SHARED_PTR <dolfin::DirichletBC const>
+      p (new dolfin::DirichletBC (V, f, sd, n));
+    bcu.push_back (p);
+  }
 
- private:
+private:
 
-  std::vector<SHARED_PTR 
-             <const dolfin::DirichletBC> > bcu;
+  std::vector<SHARED_PTR
+    <const dolfin::DirichletBC> > bcu;
 
   DECLARE_OCTAVE_ALLOCATOR;
   DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;
@@ -85,6 +85,6 @@
 
 DEFINE_OCTAVE_ALLOCATOR (boundarycondition);
 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (boundarycondition,
-                                   "boundarycondition",
-                                   "boundarycondition");
+                                     "boundarycondition",
+                                     "boundarycondition");
 #endif