[Dune] Error while using Dune:SingleCodimSingleGeomTypeMapper<GV, c>::size() function

Jayesh Badwaik jayeshb.work at gmail.com
Sat Apr 9 08:23:47 CEST 2011


sorry, was going to include it but forgot in a hurry
i've attached the exact error message

by the way, this is with respect to dune-2.0

however just now i've discovered that the function works properly if i do
the following

line 159 in dune-grid-2.0/dune/grid/common/scscmapper.hh is
return is.size(c,is.geomTypes(c)[0]);

instead if i replace it by
return is.size(is.geomTypes(c)[0]);

then the program works properly



Cheers and Regards,
Jayesh Vinay Badwaik
-----------------------------------------------------------------------------------------------------------

We are servants rather than masters in mathematics   --- Charles Hermite






On Sat, Apr 9, 2011 at 10:57, Jö Fahlke <jorrit at jorrit.de> wrote:

> Am Fri,  8. Apr 2011, 22:58:00 +0530 schrieb Jayesh Badwaik:
> > Hi,
> > I am using the following code
> >
> >                 typedef Dune::ALUSimplexGrid<dim,dim>    GridType;
> >                 typedef GridType::LeafGridView    GV;
> >
> >                 // Grid Defined Somewhere in between
> >                 const GV& gv=grid.leafView();
> >                 Dune::SingleCodimSingleGeomTypeMapper<GV,0> mapper(gv);
> >
> >                 std::cout<<mapper.size()<<std::endl;
> >                 std::vector<double> data(mapper.size());
> >                 std::cout<<data.size()<<std::endl;
> >
> > and it is not compiling properly. The problem is with the mapper.size()
> > function
> > because whenever i comment out the last three lines, there are no
> > compilation errors
> > and the programs also runs completely and exits with no errors.
> >
> > Am I doing anything wrong here??
>
> "Not compiling properly" is a very broad error discription.  Please provide
> us with the exact error message the compiler gives you.
>
> Bye,
> Jö.
>
> --
> P.S: P.S. in Emails ist ziemlich überflüssing.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIVAwUBTZ/uWOmx9CKgc0OWAQgqgRAA2Nhnbvz4dL/mXAA+rvhEvM7+cS3/BbBp
> DTRGaIfjjOo+29Wmjr55rRzJIpEZXnETlJ6g/N8TSvyNqtr0DktrPa9mi3N7lce4
> vzrkQ9aB9IWxRabbIitGCHzOQah8O9nl5+yCj4ZlgVPJni7tKUxMrSpsiGAHbE7X
> 3FzJHJC8S8+49nDn4/Lg/zkdCIHKoSyBVSpHIqtrXPdOjyxfpnzphAK6958C44pK
> dol3DdTF/39qLswO9o/1mg1tEzaqNfeKcQ8IL5zo1bOhyuTbV7FM4HnMly3dxrqk
> R3sKsUkr7fEgBZxDGxF77NT+7TRzDTxP87gKFCWS8xwcpSOGhBkImqG8zdoqYBtl
> RKHCZiMWEVcBQpkJIM6AXBfAvd43RqeURC/Yn5EovFcRRSEutdSuIEBiwqxSCGRU
> I38Zw8wISYX1z54JKh9hYjQi6VHiILTb5zUhk5Q4xB9jDIXGIf5e0ilOcYrk74Ln
> crL5U0qMEe6+dHMHtpGQMja3RMaQcZT+9N9YF0kkNSDYhwCF5cF7fk3LrpNQw/XV
> VjxOYiH7DW1O2mSYpTttC3zvMZxsFr9NKPSYAgSwcgUL33n8cIRqibKhdOY+3wYd
> pArJFMcyKXgjEHWldpaWJMCc42KFY08gQx1yhUjTY7JomA09nnaMaQNarUFmN8eU
> RjU2C72s3So=
> =UU4G
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110409/0304fe37/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: size_error
Type: application/octet-stream
Size: 2066 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110409/0304fe37/attachment.obj>


More information about the Dune mailing list