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

Jayesh Badwaik jayeshb.work at gmail.com
Fri Apr 8 19:28:00 CEST 2011


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??

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

We are servants rather than masters in mathematics   --- Charles Hermite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110408/8b3d92a6/attachment.htm>


More information about the Dune mailing list