* apply.h: size variable missing without openmp

This commit is contained in:
Caner Candan 2011-01-28 14:38:50 +01:00
commit 54e2a8b91e
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ ENDIF (ENABLE_CMAKE_TESTING)
### 5) Where must cmake go now ?
######################################################################################
ADD_SUBDIRECTORY(app)
#ADD_SUBDIRECTORY(app)
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(test)

View file

@ -40,12 +40,12 @@
template <class EOT>
void apply(eoUF<EOT&, void>& _proc, std::vector<EOT>& _pop)
{
size_t size = _pop.size();
#ifdef _OPENMP
omp_set_num_threads(eo::parallel.nthreads());
size_t size = _pop.size();
double t1 = omp_get_wtime();
if (!eo::parallel.isDynamic())