[Dune] Problem running DUNE course 2015 pdelab-exercise4sol

Eike Mueller E.Mueller at bath.ac.uk
Thu Jun 4 19:22:21 CEST 2015


Hi Tatiana,

I can only guess here. Which version of DUNE are you using? GenericReferenceElements seems to be defined in dune/geometry/genericreferenceelements.hh for the stable version 2.3.1 (see https://www.dune-project.org/doc-2.3.1/doxygen/html/structDune_1_1GenericReferenceElements.html), so you would have to make sure that this file gets included, but the file and class have disappeared from the trunk:

eikemueller at 138-38-184-244 $ pwd
/Users/eikemueller/PostDocBath/EllipticSolvers/git_workspace/dune/dune-geometry/dune/geometry

eikemueller at 138-38-184-244 $ ls
CMakeLists.txt             referenceelements.hh
Makefile.am                refinement
affinegeometry.hh          refinement.hh
axisalignedcubegeometry.hh test
dimension.hh               topologyfactory.hh
generalvertexorder.hh      type.hh
genericgeometry            typeindex.hh
multilineargeometry.hh     virtualrefinement.cc<http://virtualrefinement.cc>
quadraturerules            virtualrefinement.hh
quadraturerules.hh

Maybe one of the DUNE developers will be able to clarify which class this has been replaced by?

Thanks,

Eike

PS: GenericReferenceElements is also used in dune-pdelab-howto (see below), so I guess there the trunk is also out of sync with dune-geometry?

eikemueller at 138-38-184-244 $ pwd
/Users/eikemueller/PostDocBath/EllipticSolvers/git_workspace/dune/dune-pdelab-howto/src
eikemueller at 138-38-184-244 $ grep -R GenericReferenceElements *
convection-diffusion/parameterD.hh:          Dune::GenericReferenceElements<DF,dim>::general(gt).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim> localcenter = GenericReferenceElements<ctype,dim>::general(gt).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim> localcenter_s = GenericReferenceElements<ctype,dim>::general(gt_s).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim> localcenter_n = GenericReferenceElements<ctype,dim>::general(gt_n).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim-1> face_center = GenericReferenceElements<ctype,dim-1>::general(gt).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim> localcenter_s = GenericReferenceElements<ctype,dim>::general(gt_s).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim> localcenter = GenericReferenceElements<ctype,dim>::general(gt).position(0,0);
two-phase/twophasemfd.hh:                FieldVector<ctype,dim-1> center = GenericReferenceElements<ctype,dim-1>::general(gt).position(0,0);


On 4 Jun 2015, at 14:24, Tatiana Kim <T.Kim at bath.ac.uk<mailto:T.Kim at bath.ac.uk>> wrote:

Hello,

I am trying to run ldom_example.cc in DUNE course-2015/exercises/pdelab-exercise4sol/src. I get the following error:


User/Documents/DUNE/master/examples/src/ldom_example_operator.hh: In member function 'void LDomainExampleLocalOperator<PROBLEM>::alpha_boundary(const IG&, const LFSU&, const X&, const LFSV&, R&) const':
/User/Documents/DUNE/master/examples/src/ldom_example_operator.hh:135:53: error: 'GenericReferenceElements' is not a member of 'Dune'
       Dune::FieldVector<DF,dim-1> facecenterlocal = Dune::GenericReferenceElements<DF,dim-1>::general(gtface).position(0,0);


and not sure how to fix it. Could you please help?

Thanks,
Tatiana.
_______________________________________________
Dune mailing list
Dune at dune-project.org<mailto:Dune at dune-project.org>
http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150604/01a0239b/attachment.html>


More information about the Dune mailing list