<br>sorry, was going to include it but forgot in a hurry<br>i've attached the exact error message<br><br>by the way, this is with respect to dune-2.0<br><br>however just now i've discovered that the function works properly if i do the following<br>

<br>line 159 in dune-grid-2.0/dune/grid/common/scscmapper.hh is <br>return is.size(c,is.geomTypes(c)[0]);<br><br>instead if i replace it by<br>return is.size(is.geomTypes(c)[0]);<br><br>then the program works properly<br>

<br><br clear="all"><br>Cheers and Regards,<br>Jayesh Vinay Badwaik<br>-----------------------------------------------------------------------------------------------------------<br>
                
                                                        <div>
                        <p>We are servants rather than masters in mathematics   --- Charles Hermite<br></p>
                </div><br><br><br><br>
<br><br><div class="gmail_quote">On Sat, Apr 9, 2011 at 10:57, Jö Fahlke <span dir="ltr"><<a href="mailto:jorrit@jorrit.de">jorrit@jorrit.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Am Fri,  8. Apr 2011, 22:58:00 +0530 schrieb Jayesh Badwaik:<br>
<div class="im">> Hi,<br>
> I am using the following code<br>
><br>
>                 typedef Dune::ALUSimplexGrid<dim,dim>    GridType;<br>
>                 typedef GridType::LeafGridView    GV;<br>
><br>
>                 // Grid Defined Somewhere in between<br>
>                 const GV& gv=grid.leafView();<br>
>                 Dune::SingleCodimSingleGeomTypeMapper<GV,0> mapper(gv);<br>
><br>
>                 std::cout<<mapper.size()<<std::endl;<br>
>                 std::vector<double> data(mapper.size());<br>
>                 std::cout<<data.size()<<std::endl;<br>
><br>
> and it is not compiling properly. The problem is with the mapper.size()<br>
> function<br>
> because whenever i comment out the last three lines, there are no<br>
> compilation errors<br>
> and the programs also runs completely and exits with no errors.<br>
><br>
> Am I doing anything wrong here??<br>
<br>
</div>"Not compiling properly" is a very broad error discription.  Please provide<br>
us with the exact error message the compiler gives you.<br>
<br>
Bye,<br>
Jö.<br>
<font color="#888888"><br>
--<br>
</font>P.S: P.S. in Emails ist ziemlich überflüssing.<br>
<br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iQIVAwUBTZ/uWOmx9CKgc0OWAQgqgRAA2Nhnbvz4dL/mXAA+rvhEvM7+cS3/BbBp<br>
DTRGaIfjjOo+29Wmjr55rRzJIpEZXnETlJ6g/N8TSvyNqtr0DktrPa9mi3N7lce4<br>
vzrkQ9aB9IWxRabbIitGCHzOQah8O9nl5+yCj4ZlgVPJni7tKUxMrSpsiGAHbE7X<br>
3FzJHJC8S8+49nDn4/Lg/zkdCIHKoSyBVSpHIqtrXPdOjyxfpnzphAK6958C44pK<br>
dol3DdTF/39qLswO9o/1mg1tEzaqNfeKcQ8IL5zo1bOhyuTbV7FM4HnMly3dxrqk<br>
R3sKsUkr7fEgBZxDGxF77NT+7TRzDTxP87gKFCWS8xwcpSOGhBkImqG8zdoqYBtl<br>
RKHCZiMWEVcBQpkJIM6AXBfAvd43RqeURC/Yn5EovFcRRSEutdSuIEBiwqxSCGRU<br>
I38Zw8wISYX1z54JKh9hYjQi6VHiILTb5zUhk5Q4xB9jDIXGIf5e0ilOcYrk74Ln<br>
crL5U0qMEe6+dHMHtpGQMja3RMaQcZT+9N9YF0kkNSDYhwCF5cF7fk3LrpNQw/XV<br>
VjxOYiH7DW1O2mSYpTttC3zvMZxsFr9NKPSYAgSwcgUL33n8cIRqibKhdOY+3wYd<br>
pArJFMcyKXgjEHWldpaWJMCc42KFY08gQx1yhUjTY7JomA09nnaMaQNarUFmN8eU<br>
RjU2C72s3So=<br>
=UU4G<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>