<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="background-color: rgb(255, 255, 255);">
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">Hi All,</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-size:12pt"><b style="font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace">Background : </span></b><span style="font-family:'Courier New',monospace">I am solving the general anisotropic elasticity equations
 within Dune PDELab. Originally I have been using YaspGrid for simple mesh geometries both for sequential and parallel solvers. Now I need to import more complex meshes from gmsh. I have therefore move to using UGGrid. I have tested the code for sequential
 solvers, I am now in the position to try some parallel solvers.</span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-size:12pt"><span style="font-family:'Courier New',monospace"><strong>Problem : </strong>I have been following the 'pdelab - how to' example </span><span class="final-path" style="line-height:25px; font-family:'Courier New',monospace; font-size:12pt"><span style="font-family:'Courier New',monospace">nonoverlappingsinglephaseflow.cc
 ; although a scalar equation it uses UGGrid and a non-overlapping solver</span></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-size:12pt"><span style="font-family:'Courier New',monospace">So when I construct the UGGrid I have the following bit of code,</span><span style="font-family:'Courier New',monospace"></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(29, 148, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-family:'Courier New',monospace; font-size:10pt"><em>// Make grid using UGGrid</em></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-size:10pt"><span style="color:rgb(195,34,117); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>typedef</em></span></span><span style="font-family:'Courier New',monospace"><em> Dune::UGGrid<</em></span><span style="color:rgb(4,53,255); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>3</em></span></span><span style="font-family:'Courier New',monospace"><em>>
 UGGRID;</em></span><br style="font-family:'Courier New',monospace">
</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-family:'Courier New',monospace; font-size:10pt"><em>UGGRID uggrid;</em></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-family:'Courier New',monospace; font-size:10pt"><em>Dune::GridFactory<UGGRID> factory(&uggrid);</em></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-size:10pt"><span style="font-family:'Courier New',monospace"><em>      Dune::GmshReader<UGGRID>::read(factory,gridName,elemIndx2PG,elemIndx2PG ,
</em></span><span style="color:rgb(195,34,117); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>true</em></span></span><span style="font-family:'Courier New',monospace"><em> ,
</em></span><span style="color:rgb(195,34,117); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>false</em></span></span><span style="font-family:'Courier New',monospace"><em>);</em></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-family:'Courier New',monospace; font-size:10pt"><em>factory.createGrid();</em></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="color:rgb(195,34,117); font-family:'Courier New',monospace; font-size:10pt"><br style="font-family:'Courier New',monospace">
</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-size:10pt"><span style="color:rgb(195,34,117); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>typedef</em></span></span><span style="font-family:'Courier New',monospace"><em> Dune::UGGrid<</em></span><span style="color:rgb(4,53,255); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>3</em></span></span><span style="font-family:'Courier New',monospace"><em>>::LeafGridView
 UGGV;</em></span><br style="font-family:'Courier New',monospace">
</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-size:10pt"><span style="color:rgb(195,34,117); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>const</em></span></span><span style="font-family:'Courier New',monospace"><em> UGGV& uggv=uggrid.leafGridView();</em></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px; min-height: 21px;">
     <br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-size:10pt"><span style="color:rgb(195,34,117); font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace"><em>using</em></span></span><span style="font-family:'Courier New',monospace"><em> ES = Dune::PDELab::NonOverlappingEntitySet<UGGV>;</em></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<strong class="final-path" style="line-height:25px; font-family:'Courier New',monospace; font-size:10pt"></strong></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
<span style="font-family:'Courier New',monospace; font-size:10pt"><em>ES es(uggv);</em></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p><font face="Courier New, monospace" size="3">Dune::PDELab::NonOverlappingEntitySet is not recognised by the compiler and I can't find it anywhere in the documentation or the included header files. I presume this example is out-of-date. I need this to </font><font face="Courier New, monospace">construct</font><font face="Courier New, monospace" size="3"> a
 finite space which is compatible with UG </font></p>
<p><font style="font-family: 'Courier New', monospace; font-size: 10pt;"><br style="font-family: 'Courier New', monospace;">
</font></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-size: 10pt;"><span style="color: rgb(195, 34, 117); font-family: 'Courier New', monospace;"><span style="font-family: 'Courier New', monospace;"><em>typedef</em></span></span><span style="font-family: 'Courier New', monospace;"><em>
 Dune::PDELab::PkLocalFiniteElementMap<ES,Coord,RF,element_order> FEM;</em></span></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-family: 'Courier New', monospace; font-size: 10pt;"><em>FEM fem;</em></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><br style="font-family: 'Courier New', monospace; font-size: 10pt;">
</p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-family: 'Courier New', monospace; font-size: 12pt;">since if I use </span></p>
<p style="margin-right: 0px; margin-left: 0px;"><br style="font-family: 'Courier New', monospace; font-size: 10pt;">
</p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-size: 10pt;"><span style="color: rgb(195, 34, 117); font-family: 'Courier New', monospace;"><span style="font-family: 'Courier New', monospace;"><em>typedef</em></span></span><span style="font-family: 'Courier New', monospace;"><em> Dune::PDELab::PkLocalFiniteElementMap<UGGV,Coord,RF,element_order>
 FEM;</em></span></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-family: 'Courier New', monospace; font-size: 10pt;"><em>FEM fem;</em></span></p>
<p style="margin-right: 0px; margin-left: 0px;"><br style="font-family: 'Courier New', monospace; font-size: 10pt;">
</p>
<p style="margin-right: 0px; margin-left: 0px;"><span style="font-family: 'Courier New', monospace; font-size: 10pt;">as I do for the sequential solver I get the following compiler error</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; font-family: Menlo;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
/Users/tjd20/git_workspace/dune/dune-elastic/src/ElasticFunctions/Elasticity_driver_cgfs.hh:26:6: error: no matching function for call to 'Dune::PDELab::PkLocalFiniteElementMap<Dune::GridView<Dune::UGGridLeafGridViewTraits<const Dune::UGGrid<3>, (Dune::PartitionIteratorType)4u>
 >, double, double, 1u>::PkLocalFiniteElementMap()'</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
  FEM fem;</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 18px; font-family: Menlo;">
</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
      ^</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-size:12pt"><span style="font-family:'Courier New',monospace"><span style="font-family:'Courier New',monospace">Have I missed something? </span></span></span><span style="font-family: 'Courier New', monospace; font-size: 12pt;">Any recommendations
 on how to proceed?</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">Many Thanks</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">Tim</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<b style="font-family:'Courier New',monospace; font-size:12pt"><span style="font-family:'Courier New',monospace">Dr. Tim Dodwell</span><span style="font-family:'Courier New',monospace"></span><span style="font-family:'Courier New',monospace"></span></b></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">Senior Research Fellow</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">College of Mathematics, Engineering and Physical Sciences</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">University of Exeter</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="font-family:'Courier New',monospace; font-size:12pt">mail : t.dodwell@exeter.ac.uk</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin-right: 0px; margin-left: 0px;">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br style="font-family:'Courier New',monospace; font-size:12pt">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</p>
</div>
</body>
</html>