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

Jö Fahlke jorrit at jorrit.de
Sat Apr 9 07:27:53 CEST 2011


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110409/1a7bf79d/attachment.sig>


More information about the Dune mailing list