<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 2 6 3 5 4 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Courier New";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">I have a very clunky implementation of evaluating a solution at a general point in a domain. With recent developments in dune-functions is there a nice way of doing this, using some
 sort of tree?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">Best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">Tim<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">Ps. To be clear I would ideally want a way of doing the following without writing some local operator like I do currently!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">I.e. I have<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">typedef Dune::PDELab::Backend::Vector<GFS,RF> V;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">        V u(gfs,0.0);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">## Some code<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">typedef Dune::PDELab::StationaryLinearProblemSolver<GO,LS,V> SLP;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">      SLP slp(go,ls,u,1e-10);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">      slp.apply();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">## then I would like to do something like<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">Dune::FieldVector<double,dim> x(0.5);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">RF point_val = u(x);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">Dr Tim Dodwell</span></b><span style="color:black"><o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">Fellow of the Alan Turing Institute,<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">Senior Lecturer in Engineering Mathematics,<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">Education Lead Mechanical Engineering</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">Rm 221 - Harrison Building</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">College of Engineering, Mathematics & Physical Sciences</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">University of Exeter</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">Exeter</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">Devon</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Courier New";color:black">EX4 4PY</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<div id="divtagdefaultwrapper">
<div id="Signature">
<div id="divtagdefaultwrapper">
<div>
<p class="MsoNormal" style="background:white"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">mail:</span></b><span style="font-family:"Courier New";color:black"> t.dodwell(at)<a href="http://exeter.ac.uk/"><span style="color:purple">exeter.ac.uk</span></a></span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">tel:</span></b><span style="font-family:"Courier New";color:black"> +44 (0)1392 725899</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">mob:</span></b><span style="font-family:"Courier New";color:black"> +44 (0)7745 622870</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">web:</span></b><span style="font-family:"Courier New";color:black"> <a href="http://emps.exeter.ac.uk/engineering/staff/td336" title="http://emps.exeter.ac.uk/engineering/staff/td336 Cmd+Click or tap to follow the link"><span style="color:purple">http://emps.exeter.ac.uk/engineering/staff/td336</span></a></span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">Papers and Pre-prints: </span></b><span style="font-family:"Courier New";color:black"><a href="https://www.researchgate.net/profile/Timothy_Dodwell" title="https://www.researchgate.net/profile/Timothy_Dodwell Cmd+Click or tap to follow the link"><span style="color:purple">@Research-Gate</span></a></span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-family:"Courier New";color:black">Citations: </span></b><span style="font-family:"Courier New";color:black"><a href="https://scholar.google.co.uk/citations?user=lPpjRfUAAAAJ&hl=en" title="https://scholar.google.co.uk/citations?user=lPpjRfUAAAAJ&amp;hl=en Cmd+Click or tap to follow the link"><span style="color:purple">@Google-Scholar</span></a></span><span style="color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>