--- trunk/gadget/interruptinterface.cc 2015/07/30 12:36:46 14 +++ trunk/gadget/interruptinterface.cc 2015/11/09 10:22:57 17 @@ -4,8 +4,8 @@ #include "gadget.h" extern Ecosystem* EcoSystem; - -#ifndef NO_OPENMP +extern volatile int interrupted; +#ifdef _OPENMP extern Ecosystem** EcoSystems; #endif @@ -13,7 +13,7 @@ if (EcoSystem->getFuncEval() != 0) { int iters = EcoSystem->getFuncEval(); - #ifndef NO_OPENMP + #ifdef _OPENMP int numThr = omp_get_max_threads ( ); for (int i = 0; i < numThr; i++) iters += EcoSystems[i]->getFuncEval(); @@ -31,7 +31,7 @@ } int InterruptInterface::menu() { - + interrupted = 0; char userinput[MaxStrLength]; char interruptfile[MaxStrLength]; strncpy(userinput, "", MaxStrLength);