← Back to team overview

ffc team mailing list archive

Re: ffc define header error

 

Quoting Andy Ray Terrel <aterrel@xxxxxxxxxxxx>:

> Could we get ffc to be smarter about the header defines.  For example
> if I compile a form from a different directory than the form file is
> in I get a "/" in the name.
> 
> For example:
> 
> #ifndef __NORMS/P4VECDIVL2_H
> #define __NORMS/P4VECDIVL2_H
> 
> But I would prefer:
> 
> #ifndef __P4VECDIVL_H
> #define __P4VECDIVL2_H

I've implemented this solution, the output from FFC will be located in the same
directory as the form file i.e.,

ffc foo/bar/Poisson.form  --> foo/bar/Poisson.h

but the idefs and class names etc. will only have 'Poisson' as prefix.

Kristian
 
>  or
> 
> 
> #ifndef __NORMS_P4VECDIVL2_H
> #define __NORMS_P4VECDIVL2_H
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/ffc-dev
> 




Follow ups

References