[Dune] [Dune-Commit] dune-localfunctions r1049 - trunk/dune/localfunctions/common

Markus Blatt markus at dr-blatt.de
Fri Apr 13 18:54:45 CEST 2012


On Fri, Apr 13, 2012 at 06:46:59PM +0200, Christian Engwer wrote:
> On Fri, Apr 13, 2012 at 06:27:06PM +0200, Christoph GrĂ¼ninger wrote:
> > do you imply that for-loops have to use this ugly type from now
> on?

>From now on? There seem to be a lot of places in dune core where this
is used:

mblatt at legolas:~/src/dune/current$ find
dune-{common,istl,grid,localfunctions,geometry} -name \*.hh | xargs
grep ::size_type * | wc --lines
153

> How about a 
> 
> typedef typename container::site_type size_type;
> for (size_type i=....)
> 

That's the one. I agree that it is a lot of typing but it is not ugly.

BTW: Thanks for your changing commit!

-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858  Fax: +49 (0)322 1108991658 




More information about the Dune mailing list