dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #15831
Re: [HG DOLFIN] Comment out local (cell) Function::interpolate functions.
On Wed, Sep 30, 2009 at 05:00:12PM +0200, DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
>
> changeset: 7187:0dcf7442d97e
> tag: tip
> user: "Garth N. Wells <gnw20@xxxxxxxxx>"
> date: Wed Sep 30 16:00:05 2009 +0100
> files: dolfin/function/Function.cpp dolfin/function/Function.h
> description:
> Comment out local (cell) Function::interpolate functions.
>
> Add some code to Function::restrict. It's so simple, can it possibly be correct?
You mean this?
// Get dofmap
const DofMap& dofmap = _function_space->dofmap();
// Tabulate dofs
uint* dofs = new uint[dofmap.local_dimension(ufc_cell)];
dofmap.tabulate_dofs(dofs, ufc_cell, dolfin_cell.index());
// Pick values from vector(s)
get(w, dofmap.local_dimension(ufc_cell), dofs);
Yes, it should be that simple. It should just figure out which dofs to
grab and then grab those from the vector.
--
Anders
Attachment:
signature.asc
Description: Digital signature
References