[dune-fem] DoF vector for an AdaptiveDiscreteFunction: how to get the method dofStorage ()

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Thu Sep 13 11:40:26 CEST 2012


Hi everyone,

I have a simple question about the " .dofStorage () " method. This is, maybe, a change between release 1.2.1 and 1.3.0.

Suppose you have the following definitions of pairs of function space and grid function:

typedef Dune:Fem::LagrangeDiscreteFunctionSpace< VertexFunctionSpaceType, HostGridPartType, 1 > VertexSpaceType;
typedef Dune::Fem::AdaptiveDiscreteFunction < VertexSpaceType > VertexFunctionType;
typedef Dune::Fem::LagrangeDiscreteFunctionSpace< VectorPositionFunctionSpaceType, GridPartType, vectorPolynomialOrder > DiscretePositionFunctionSpaceType;
typedef Dune::Fem::AdaptiveDiscreteFunction < DiscretePositionFunctionSpaceType > DiscretePositionFunctionType;

I instantiate these two objects of grid functions, and I want the second to take the same "algebraic counterpart" of the first. In other words, with release 1.2.1 I did

DiscretePositionFunctionType discrete_position_solution ( "discrete_position_solution", dfpSpace );
VertexFunctionType vertices ( "vertices", vxSpace, discrete_position_solution.dofStorage () );

but now I got the message that " .dofStorage () " is a protected method. How can I extract the vector and do the same operation allowed in the previous release?

Thanks again for your help,

Andrea

__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-fem/attachments/20120913/c0390c70/attachment.htm>


More information about the dune-fem mailing list