← Back to team overview

dolfin team mailing list archive

Re: ufc element (again) not accessible after recent change

 

On Tue, Mar 08, 2011 at 08:22:10PM +0100, Andre Massing wrote:
> Den 08.03.11 19.43, skrev Anders Logg:
> >On Tue, Mar 08, 2011 at 07:41:01PM +0100, Andre Massing wrote:
> >>Den 08.03.11 19.22, skrev Anders Logg:
> >>>On Tue, Mar 08, 2011 at 07:05:11PM +0100, Andre Massing wrote:
> >>>>Hi!
> >>>>
> >>>>After my adaption of my code to access ufc::elements a couple of
> >>>>weeks ago, my code broke again after the recent change since a
> >>>>FiniteElement class does not longer have the ufc_element() getter
> >>>>function (which previously returned a smart ptr). The problem is
> >>>>that I need the
> >>>>
> >>>>evaluate_basis_derivatives_all
> >>>>
> >>>>of the ufc element.
> >>>>Although some of the evaluate functions contained in the ufc element
> >>>>are exposed in the FiniteElement, this one is missing in the
> >>>>FiniteElement interface (is there a reason for that?) and at the
> >>>>same time the ufc_element is not accessible any more. Any ideas how
> >>>>to resolve that? Would be possible to add either an getter function
> >>>>back or to expose the underlying function in the FiniteElement
> >>>>interface?
> >>>
> >>>I don't see a reason for why that function is missing. I'll add it
> >>>later tonight.
> >>
> >>BTW, might it possible to add the all variant for the derivate as well?
> >>     void evaluate_basis_derivatives_all(unsigned int n,
> >>					double* values,
> >>					const double* x,
> >>					const ufc::cell&  cell) const
> >>     { _ufc_element->evaluate_basis_derivatives_all(n, values, x, cell); }
> >
> >That's the one you asked for (see above), but I see what you
> >mean. Will add both.
>
> Yes, too many similiar function names. Great, thanks for adding!

Pushed now to the logg-branch.

--
Anders



References