<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
Hello,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
I would like to use l2interpolationerror.hh described in the example q1interpolatione​rror.hh in PDELab-howto section 9.5 in my code. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
I have created analytic function object and made y interpolate u as in the example:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> U<GridView,Real> u(grid.leafGridView());</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> <br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> PDELab::interpolate(u,gfs,y);<br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
This works fine. The next step is to compute l2-error:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> std::cout.precision(<font color="#272AD8">8</font>);</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1" color="#D12F1B"><span style="font-size: 11px;"><font color="black"> std::cout << </font>"interpolation error: "</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> << std :: setw(<font color="#272AD8">8</font>) << ijy << <font color="#D12F1B">" elements "</font></span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> << std :: scientific << l2interpolationerror(u,gfsf,y,<font color="#272AD8">4</font>) << std :: endl ;<br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"><br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
This doesn't work in my code. I get an error along these lines:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
error: no type named 'FiniteElementType' in 'Dune::PDELab::VectorGridFunctionSpace<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
in l2interpolationerror.hh:15:36 (<font face="Calibri,Arial,Helvetica,sans-serif">The first few lines of the error message are below</font>).<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
I am a bit stuck on this problem and not sure what to do. Could you please help?<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
Thanks,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
Tatiana.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
This is how GFS is set up in my code:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> <font color="#BB2CA2">typedef</font> GridType::ctype Coord;</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1" color="#BB2CA2"><span style="font-size: 11px;"><font color="black"> </font>typedef<font color="black"> </font>double<font color="black"> Real;</font></span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> </span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1" color="#008400"><span style="font-size: 11px;"><font color="black"> </font>// set up vector-valued finite element space</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> <font color="#BB2CA2">typedef</font> PDELab::PkLocalFiniteElementMap<GridView,Coord, Real, <font color="#272AD8">1</font>> FEM;</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> FEM fem(grid.leafGridView());</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> <br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> </span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> <font color="#BB2CA2">typedef</font> PDELab::VectorGridFunctionSpace<GridView,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> FEM,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> dim,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> PDELab::ISTLVectorBackend<PDELab::ISTLParameters::static_blocking>,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> PDELab::ISTLVectorBackend<>,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> PDELab::ConformingDirichletConstraints,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> PDELab::EntityBlockedOrderingTag,</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> PDELab::DefaultLeafOrderingTag</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> > GFSF;</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"> GFSF gfsf(grid.leafGridView(),fem);</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"><br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;"><br>
</span></font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); margin: 0px;">
<font face="Menlo" size="1"><span style="font-size: 11px;">**********************************</span></font></div>
<div style="background-color: rgb(255, 255, 255); margin: 0px;"><font face="Menlo"><span style="font-size: 11px;">The first few lines of the error message:</span></font></div>
<div style="background-color: rgb(255, 255, 255); margin: 0px;"><font face="Menlo"><span style="font-size: 11px;"><br>
</span></font></div>
<div style="background-color: rgb(255, 255, 255); margin: 0px;">
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo; color: rgb(213, 59, 211);">
<strong>Scanning dependencies of target testproject</strong></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);">
<span style="color: #000000">[100%] </span>Building CXX object src/CMakeFiles/testproject.dir/testproject.cc.o</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
In file included from /Users/tatianakim/Documents/DUNE/master/testproject/src/testproject.cc:47:0:</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
/Users/tatianakim/Documents/DUNE/master/testproject/l2interpolationerror.hh: In instantiation of 'double l2interpolationerror(const U&, const GFS&, X&, int) [with U = U<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u>
>, double>; GFS = Dune::PDELab::VectorGridFunctionSpace<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::PkLocalFiniteElementMap<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>,
(Dune::PartitionIteratorType)4u> >, double, double, 1u>, 3ul, Dune::PDELab::ISTLVectorBackend<(Dune::PDELab::ISTLParameters::Blocking)2u>, Dune::PDELab::ISTLVectorBackend<>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::EntityBlockedOrderingTag,
Dune::PDELab::LeafOrderingTag<Dune::PDELab::DefaultLeafOrderingParams> >; X = Dune::PDELab::ISTLBlockVectorContainer<Dune::PDELab::VectorGridFunctionSpace<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u>
>, Dune::PDELab::PkLocalFiniteElementMap<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u> >, double, double, 1u>, 3ul, Dune::PDELab::ISTLVectorBackend<(Dune::PDELab::ISTLParameters::Blocking)2u>, Dune::PDELab::ISTLVectorBackend<>,
Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::EntityBlockedOrderingTag, Dune::PDELab::LeafOrderingTag<Dune::PDELab::DefaultLeafOrderingParams> >, Dune::BlockVector<Dune::FieldVector<double, 3>, std::allocator<Dune::FieldVector<double, 3> > >
>]':</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
/Users/tatianakim/Documents/DUNE/master/testproject/src/testproject.cc:350:61: required from here</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
/Users/tatianakim/Documents/DUNE/master/testproject/l2interpolationerror.hh:15:36: error: no type named 'FiniteElementType' in 'Dune::PDELab::VectorGridFunctionSpace<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u>
>, Dune::PDELab::PkLocalFiniteElementMap<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u> >, double, double, 1u>, 3ul, Dune::PDELab::ISTLVectorBackend<(Dune::PDELab::ISTLParameters::Blocking)2u>, Dune::PDELab::ISTLVectorBackend<>,
Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::EntityBlockedOrderingTag, Dune::PDELab::LeafOrderingTag<Dune::PDELab::DefaultLeafOrderingParams> >::Traits {aka struct Dune::PDELab::PowerCompositeGridFunctionSpaceTraits<Dune::GridView<Dune::UGGridLeafGridViewTraits<const
Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::ISTLVectorBackend<(Dune::PDELab::ISTLParameters::Blocking)2u>, Dune::PDELab::EntityBlockedOrderingTag, 3ul>}'</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
Traits::LocalBasisType::Traits FTraits;​<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
<br>
</p>
<font face="Menlo"><span style="font-size: 11px;"><br>
</span></font></div>
<p><br>
</p>
</body>
</html>