<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
just for completeness, following Andreas's suggestion, I tried to modify the privileges public/protected/private, but it doesn't work so far. There is a chain of inheritance that makes it not easy, and it's naturally poorly portable.<br>
<br>
Isn't there any method for getting the vector of degrees of freedom? <br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">Cheers,<br>
<br>
Andrea<br>
__________________________________________________________<br>
<br>
Andrea Sacconi<br>
PhD student, Applied Mathematics<br>
AMMP Section, Department of Mathematics, Imperial College London,<br>
London SW7 2AZ, UK<br>
a.sacconi11@imperial.ac.uk<br>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF652822"><font color="#000000" face="Tahoma" size="2"><b>From:</b> dune-fem-bounces+a.sacconi11=imperial.ac.uk@dune-project.org [dune-fem-bounces+a.sacconi11=imperial.ac.uk@dune-project.org] on behalf of Sacconi, Andrea
 [a.sacconi11@imperial.ac.uk]<br>
<b>Sent:</b> 13 September 2012 10:40<br>
<b>To:</b> dune-fem@dune-project.org<br>
<b>Subject:</b> [dune-fem] DoF vector for an AdaptiveDiscreteFunction: how to get the method dofStorage ()<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Hi everyone,<br>
<br>
I have a simple question about the " .dofStorage () " method. This is, maybe, a change between release 1.2.1 and 1.3.0.<br>
<br>
Suppose you have the following definitions of pairs of function space and grid function:<br>
<br>
typedef Dune:Fem::LagrangeDiscreteFunctionSpace< VertexFunctionSpaceType, HostGridPartType, 1 > VertexSpaceType;<br>
typedef Dune::Fem::AdaptiveDiscreteFunction < VertexSpaceType > VertexFunctionType;<br>
typedef Dune::Fem::LagrangeDiscreteFunctionSpace< VectorPositionFunctionSpaceType, GridPartType, vectorPolynomialOrder > DiscretePositionFunctionSpaceType;<br>
typedef Dune::Fem::AdaptiveDiscreteFunction < DiscretePositionFunctionSpaceType > DiscretePositionFunctionType;<br>
<br>
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
<br>
<br>
DiscretePositionFunctionType discrete_position_solution ( "discrete_position_solution", dfpSpace );<br>
VertexFunctionType vertices ( "vertices", vxSpace, discrete_position_solution.dofStorage () );<br>
<br>
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?<br>
<br>
<div>Thanks again for your help,<br>
<br>
Andrea<br>
<div style="font-family: Tahoma; font-size: 13px;"><br>
__________________________________________________________<br>
<br>
Andrea Sacconi<br>
PhD student, Applied Mathematics<br>
AMMP Section, Department of Mathematics, Imperial College London,<br>
London SW7 2AZ, UK<br>
a.sacconi11@imperial.ac.uk<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>