octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: project progress


From: c.
Subject: Re: project progress
Date: Thu, 12 Sep 2013 12:10:33 +0200

On 12 Sep 2013, at 11:57, marco Vassallo <address@hidden> wrote:

> 
> > 
> > How do you make sure that form.h is in the include path?
> > 
> 
> What I'm doing is the following:
> 
> 
> function import_ufl_Problem (var_prob)
> 
>   n = length (mfilename ("fullpath")) - length (mfilename());
>   path = strtrunc(mfilename ("fullpath"), n);

if you just want to extract the directory of the current file, you should use
the command "fileparts":

path = fileparts (mfilename ("fullpath"));

but actually it would be better to not generate the code where the example is 
installed.
This will never work if the example is in a system directory because the user 
will not have
access to it.

>   private = fullfile (path, "private/");
>   output = generate_fs (var_prob);
>   output = generate_makefile (var_prob, private);
> 
>     [output, textfile] = system (sprintf ("make -f Makefile_%s all", 
> var_prob));
> 
> endfunction
> 
> As you get an error, I think that you should have in your folder a file 
> called Makefile_HyperElasticity.
> If you could sent it to me, I could check if the path is generated correctly.


see attachment.

> Thanks again,
> 
> Marco
>  
> > c.

Attachment: Makefile_HyperElasticity
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]