peoPopEval.h modified

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1005 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2008-02-26 08:53:48 +00:00
commit b1175c10ab

View file

@ -153,6 +153,8 @@ template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __dummy,
template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __pop ) template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __pop )
{ {
if ( __pop.size() && (funcs.size() * __pop.size()) )
{
for ( unsigned i = 0; i < __pop.size(); i++ ) for ( unsigned i = 0; i < __pop.size(); i++ )
{ {
__pop[ i ].fitness(typename EOT :: Fitness() ); __pop[ i ].fitness(typename EOT :: Fitness() );
@ -167,6 +169,7 @@ template< class EOT > void peoPopEval< EOT >::operator()(eoPop< EOT >& __pop )
total = funcs.size() * __pop.size(); total = funcs.size() * __pop.size();
requestResourceRequest( funcs.size() * __pop.size() ); requestResourceRequest( funcs.size() * __pop.size() );
stop(); stop();
}
} }