diff inst/private/generate_fs.m @ 268:61830a4f9ab9

Improve formatting
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Thu, 14 Aug 2014 12:26:55 +0200
parents 5e9b5bbdc56b
children
line wrap: on
line diff
--- a/inst/private/generate_fs.m	Tue Aug 12 15:42:50 2014 +0200
+++ b/inst/private/generate_fs.m	Thu Aug 14 12:26:55 2014 +0200
@@ -17,6 +17,7 @@
 ## -*- texinfo -*-
 ## function for internal usage only
 ## @end deftypefn
+
 function output = generate_fs (ufl_name)
 
 STRING ="\n\
@@ -25,7 +26,8 @@
 #include ""@@UFL_NAME@@.h""\n\
 #include <fem-fenics/dolfin_compat.h>\n\
 \n\
-DEFUN_DLD (@@UFL_NAME@@_FunctionSpace, args, , ""initialize a fs from a mesh declared with fem_init_mesh"")\n\
+DEFUN_DLD (@@UFL_NAME@@_FunctionSpace, args, ,\
+           ""initialize a fs from a mesh declared with fem_init_mesh"")\n\
 {\n\
   int nargin = args.length ();\n\
   octave_value retval;\n\
@@ -46,7 +48,8 @@
         {\n\
           const mesh & msho = static_cast<const mesh&> (args(0).get_rep ());\n\
           const dolfin::Mesh & mshd = msho.get_msh ();\n\
-          SHARED_PTR <const dolfin::FunctionSpace> g (new @@UFL_NAME@@::FunctionSpace (mshd));\n\
+          SHARED_PTR <const dolfin::FunctionSpace>\
+            g (new @@UFL_NAME@@::FunctionSpace (mshd));\n\
 \n\
           if (! functionspace_type_loaded)\n\
             {\n\
@@ -61,9 +64,9 @@
   return retval;\n\
 }";
 
-STRING =  strrep (STRING, "@@UFL_NAME@@", ufl_name);
+STRING = strrep (STRING, "@@UFL_NAME@@", ufl_name);
 
-fid = fopen (sprintf ("%s_FunctionSpace.cc", ufl_name), 'w');
+fid = fopen (sprintf ("%s_FunctionSpace.cc", ufl_name), "w");
 if (fid >= 0)
   fputs (fid, STRING);
   output = fclose (fid);