[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.
Makefile_HyperElasticity
Description: Binary data
- Re: project progress, (continued)
- Message not available
- Re: project progress, c., 2013/09/04
- RE: project progress, marco Vassallo, 2013/09/06
- Re: project progress, c., 2013/09/07
- Re: project progress, c., 2013/09/07
- Re: project progress, c., 2013/09/12
- RE: project progress, marco Vassallo, 2013/09/12
- Re: project progress, c., 2013/09/12
- RE: project progress, marco Vassallo, 2013/09/12
- Re: project progress, c., 2013/09/12
- Message not available
- Re: project progress,
c. <=
- Re: project progress, c., 2013/09/12
- Re: project progress, c., 2013/09/12
- Re: project progress, c., 2013/09/12
- RE: project progress, marco Vassallo, 2013/09/12
- Re: project progress, c., 2013/09/12
- Re: project progress, c., 2013/09/12