← Back to team overview

ffc team mailing list archive

Re: division /

 

Quoting Anders Logg <logg@xxxxxxxxx>:

> FFC does allow division by constants:
> 
>     c = Constant()
>     a = v*f/c*dx
> 
> I will add a note on this in the manual.
> 
> Or maybe you came across something that didn't work?

OK, looks like a bug then. If I do something like

c = Constant()
a = v*f*c/c*dx

then in the header file for DOLFIN, the bilinear form wants two reals, rather
than just one.

Garth


>     
> > BTW, the ffc manual is looking good and Chapter 5 is really helpful.
> 
> Thanks! It's just a start. It takes time to write manuals and it's a
> bit boring but I'm trying to make some progress...
> 
> /Anders
> 
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/ffc-dev
> 



Follow ups

References