Using boost spirit conversions
This commit is contained in:
parent
3c6121d192
commit
6003ae7406
@ -54,6 +54,7 @@ extern "C" {
|
|||||||
#include "Util/BaseConfiguration.h"
|
#include "Util/BaseConfiguration.h"
|
||||||
#include "Util/InputFileUtil.h"
|
#include "Util/InputFileUtil.h"
|
||||||
#include "Util/GraphLoader.h"
|
#include "Util/GraphLoader.h"
|
||||||
|
#include "Util/StringUtil.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -74,16 +75,12 @@ int main (int argc, char *argv[]) {
|
|||||||
|
|
||||||
double startupTime = get_timestamp();
|
double startupTime = get_timestamp();
|
||||||
unsigned numberOfThreads = omp_get_num_procs();
|
unsigned numberOfThreads = omp_get_num_procs();
|
||||||
// std::string SRTM_ROOT;
|
|
||||||
if(testDataFile("contractor.ini")) {
|
if(testDataFile("contractor.ini")) {
|
||||||
ContractorConfiguration contractorConfig("contractor.ini");
|
ContractorConfiguration contractorConfig("contractor.ini");
|
||||||
if(atoi(contractorConfig.GetParameter("Threads").c_str()) != 0 && (unsigned)atoi(contractorConfig.GetParameter("Threads").c_str()) <= numberOfThreads)
|
unsigned rawNumber = stringToInt(contractorConfig.GetParameter("Threads"));
|
||||||
numberOfThreads = (unsigned)atoi( contractorConfig.GetParameter("Threads").c_str() );
|
if(rawNumber != 0 && rawNumber <= numberOfThreads)
|
||||||
// if(0 < contractorConfig.GetParameter("SRTM").size() )
|
numberOfThreads = rawNumber;
|
||||||
// SRTM_ROOT = contractorConfig.GetParameter("SRTM");
|
|
||||||
}
|
}
|
||||||
// if(0 != SRTM_ROOT.size())
|
|
||||||
// INFO("Loading SRTM from/to " << SRTM_ROOT);
|
|
||||||
omp_set_num_threads(numberOfThreads);
|
omp_set_num_threads(numberOfThreads);
|
||||||
|
|
||||||
INFO("Using restrictions from file: " << argv[2]);
|
INFO("Using restrictions from file: " << argv[2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user