# HG changeset patch # User gedeone-octave # Date 1378986263 -7200 # Node ID 262c9d7bda1c8c5914480127f75ea3b9d5b23ad5 # Parent d82b09246f6ca933b364ac8e608a43ab5b253391 Call the header file from the /include directories diff -r d82b09246f6c -r 262c9d7bda1c inst/generate_fs.m --- a/inst/generate_fs.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/generate_fs.m Thu Sep 12 13:44:23 2013 +0200 @@ -20,8 +20,8 @@ function output = generate_fs (ufl_name) STRING ="\n\ -#inclcude \n\ -#inclcude \n\ +#include \n\ +#include \n\ #include ""@@UFL_NAME@@.h""\n\ \n\ DEFUN_DLD (@@UFL_NAME@@_FunctionSpace, args, , ""initialize a fs from a mesh declared with fem_init_mesh"")\n\ diff -r d82b09246f6c -r 262c9d7bda1c inst/generate_fun.m --- a/inst/generate_fun.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/generate_fun.m Thu Sep 12 13:44:23 2013 +0200 @@ -21,10 +21,10 @@ STRING ="\n\ #include ""@@UFL_NAME@@.h""\n\ -#inclcude \n\ -#inclcude \n\ -#inclcude \n\ -#inclcude \n\ +#include \n\ +#include \n\ +#include \n\ +#include \n\ \n\ DEFUN_DLD (@@UFL_NAME@@_Functional, args, , ""A = fem_rhs_@@UFL_NAME@@ (FUNCTIONAL SPACE, COEFF)"")\n\ {\n\ diff -r d82b09246f6c -r 262c9d7bda1c inst/generate_lhs.m --- a/inst/generate_lhs.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/generate_lhs.m Thu Sep 12 13:44:23 2013 +0200 @@ -21,10 +21,10 @@ STRING ="\n\ #include ""@@UFL_NAME@@.h""\n\ -#inclcude \n\ -#inclcude \n\ -#inclcude \n\ -#inclcude \n\ +#include \n\ +#include \n\ +#include \n\ +#include \n\ \n\ DEFUN_DLD (@@UFL_NAME@@_LinearForm, args, , "" b = fem_lhs_@@UFL_NAME@@ (FUNCTIONAL SPACE, COEFF)"")\n\ {\n\ diff -r d82b09246f6c -r 262c9d7bda1c inst/generate_rhs.m --- a/inst/generate_rhs.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/generate_rhs.m Thu Sep 12 13:44:23 2013 +0200 @@ -21,10 +21,10 @@ STRING ="\n\ #include ""@@UFL_NAME@@.h""\n\ -#inclcude \n\ -#inclcude \n\ -#inclcude \n\ -#inclcude \n\ +#include \n\ +#include \n\ +#include \n\ +#include \n\ \n\ DEFUN_DLD (@@UFL_NAME@@_BilinearForm, args, , ""A = fem_rhs_@@UFL_NAME@@ (FUNCTIONAL SPACE, COEFF)"")\n\ {\n\ diff -r d82b09246f6c -r 262c9d7bda1c inst/import_ufl_BilinearForm.m --- a/inst/import_ufl_BilinearForm.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/import_ufl_BilinearForm.m Thu Sep 12 13:44:23 2013 +0200 @@ -31,7 +31,7 @@ n = length (mfilename ("fullpath")) - length (mfilename()); path = strtrunc(mfilename ("fullpath"), n); - private = fullfile (path, "private/"); + private = fullfile (path, "include/"); output = generate_rhs (var_prob); output += generate_makefile (var_prob, private); if output != 0 diff -r d82b09246f6c -r 262c9d7bda1c inst/import_ufl_FunctionSpace.m --- a/inst/import_ufl_FunctionSpace.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/import_ufl_FunctionSpace.m Thu Sep 12 13:44:23 2013 +0200 @@ -31,7 +31,7 @@ n = length (mfilename ("fullpath")) - length (mfilename()); path = strtrunc(mfilename ("fullpath"), n); - private = fullfile (path, "private/"); + private = fullfile (path, "include/"); output = generate_fs (var_prob); output += generate_makefile (var_prob, private); if output != 0 diff -r d82b09246f6c -r 262c9d7bda1c inst/import_ufl_Functional.m --- a/inst/import_ufl_Functional.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/import_ufl_Functional.m Thu Sep 12 13:44:23 2013 +0200 @@ -31,7 +31,7 @@ n = length (mfilename ("fullpath")) - length (mfilename()); path = strtrunc(mfilename ("fullpath"), n); - private = fullfile (path, "private/"); + private = fullfile (path, "include/"); output = generate_fun (var_prob); output += generate_makefile (var_prob, private); if output != 0 diff -r d82b09246f6c -r 262c9d7bda1c inst/import_ufl_LinearForm.m --- a/inst/import_ufl_LinearForm.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/import_ufl_LinearForm.m Thu Sep 12 13:44:23 2013 +0200 @@ -31,7 +31,7 @@ n = length (mfilename ("fullpath")) - length (mfilename()); path = strtrunc(mfilename ("fullpath"), n); - private = fullfile (path, "private/"); + private = fullfile (path, "include/"); output = generate_lhs (var_prob); output += generate_makefile (var_prob, private); diff -r d82b09246f6c -r 262c9d7bda1c inst/import_ufl_Problem.m --- a/inst/import_ufl_Problem.m Thu Sep 12 13:17:23 2013 +0200 +++ b/inst/import_ufl_Problem.m Thu Sep 12 13:44:23 2013 +0200 @@ -32,7 +32,7 @@ n = length (mfilename ("fullpath")) - length (mfilename()); path = strtrunc(mfilename ("fullpath"), n); - private = fullfile (path, "private/"); + private = fullfile (path, "include/"); output = generate_fs (var_prob); output += generate_rhs (var_prob); output += generate_lhs (var_prob);