fallback to CH, when coreCH used
This commit is contained in:
committed by
Patrick Niklaus
parent
7cf7c46939
commit
2a13f9d10b
@@ -42,9 +42,10 @@ namespace contractor
|
||||
|
||||
int Contractor::Run()
|
||||
{
|
||||
if (config.core_factor > 1.0 || config.core_factor < 0)
|
||||
if (config.core_factor)
|
||||
{
|
||||
throw util::exception("Core factor must be between 0.0 to 1.0 (inclusive)" + SOURCE_REF);
|
||||
util::Log(logWARNING) << "Using core factor is deprecated and will be ignored. Falling back to CH.";
|
||||
config.core_factor = 1.0;
|
||||
}
|
||||
|
||||
if (config.use_cached_priority)
|
||||
@@ -104,8 +105,6 @@ int Contractor::Run()
|
||||
|
||||
files::writeGraph(config.GetPath(".osrm.hsgr"), checksum, query_graph, edge_filters);
|
||||
|
||||
files::writeCoreMarker(config.GetPath(".osrm.core"), cores);
|
||||
|
||||
TIMER_STOP(preparing);
|
||||
|
||||
util::Log() << "Preprocessing : " << TIMER_SEC(preparing) << " seconds";
|
||||
|
||||
Reference in New Issue
Block a user