← Back to team overview

dolfin team mailing list archive

Re: [FFC-dev] DOLFIN wrapper code

 

On Wed, Nov 05, 2008 at 03:17:13PM +0000, Garth N. Wells wrote:
> In the FFC-produced wrapper code for DOLFIN, could will still generate a 
> Form constructor which takes the coefficient functions (or a vector of 
> coefficient functions) as an argument? This is needed when one works 
> with a pointer to a form. Doing
> 
>    Form* a;
>    a = new WeightedPoissonBilinearForm(V, V);
> 
> it's not possible to attach coefficient functions because a Form doesn't 
> know about them, only WeightedPoissonBilinearForm does.
> 
> Garth

Is this something that happens in user code (so it needs to look
nice)?

Otherwise, just do

  Form* a;
  static_cast<WeightedPoissonBilinearForm*>(a)->f = f;

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References