Commit 0c11b161 authored by Antoine Regimbeau's avatar Antoine Regimbeau

Merge branch 'openmp_testmain' into 'develop'

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

See merge request !301
parents 7a38c6f1 0eaf7ad4
......@@ -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