diff src/DirichletBC.cc @ 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/DirichletBC.cc	Tue Aug 12 15:42:50 2014 +0200
+++ b/src/DirichletBC.cc	Thu Aug 14 12:26:55 2014 +0200
@@ -48,7 +48,7 @@
   octave_value retval;
 
   if (nargin < 3 || nargin > 4)
-    print_usage ();
+    { print_usage (); }
   else
     {
 
@@ -75,8 +75,8 @@
 
       if (args(0).type_id () == functionspace::static_type_id ())
         {
-          const functionspace & fspo = 
-            static_cast<const functionspace&> (args(0).get_rep ());
+          const functionspace & fspo =
+            static_cast<const functionspace &> (args(0).get_rep ());
           octave_fcn_handle * fh = args(1).fcn_handle_value ();
 
           if (nargin == 3)
@@ -95,16 +95,16 @@
 
                   expression * pf;
                   if (l > 1)
-                    pf = new expression (*fh, l);
+                    { pf = new expression (*fh, l); }
                   else
-                    pf = new expression (*fh);
+                    { pf = new expression (*fh); }
 
                   SHARED_PTR <const expression> f (pf);
                   boundarycondition * pbc = new boundarycondition ();
 
                   for (octave_idx_type i = 0;
                        i < side.length (); ++i)
-                      pbc->add_bc (V, f, side(i));
+                    { pbc->add_bc (V, f, side(i)); }
                   retval = octave_value (pbc);
                 }
             }
@@ -126,9 +126,9 @@
 
                   expression * pf;
                   if (l > 1)
-                    pf = new expression (*fh, l);
+                    { pf = new expression (*fh, l); }
                   else
-                    pf = new expression (*fh);
+                    { pf = new expression (*fh); }
 
                   SHARED_PTR <const expression> f (pf);
                   boundarycondition * pbc = new boundarycondition ();
@@ -138,7 +138,7 @@
 
                   for (octave_idx_type i = 0;
                        i < side.length (); ++i)
-                      pbc->add_bc (V, f, subdomains, side(i));
+                    { pbc->add_bc (V, f, subdomains, side (i)); }
                   retval = octave_value (pbc);
                 }
             }