Commit 0eaf7ad4 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: initialize the number of openMP threads after any modification by command line

parent 5e5507fe
......@@ -74,8 +74,6 @@ int main(int ac, char* av[])
otb::MPIConfig::Instance()->Init(ac,av);
#endif
otb::ConfigurationManager::InitOpenMPThreads();
bool lFlagRegression(false);
double lToleranceDiffValue(0);
double lEpsilon(0);
......@@ -290,6 +288,8 @@ int main(int ac, char* av[])
testToRun = av[1];
}
otb::ConfigurationManager::InitOpenMPThreads();
std::map<std::string, MainFuncPointer>::iterator j = StringToTestFunctionMap.find(testToRun);
// If the test doesn't exists
if ( j == StringToTestFunctionMap.end() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment