contour_tree_augmented example compiles when TBB is enabled

Fixes #486
This commit is contained in:
Robert Maynard 2020-04-02 11:22:09 -04:00
parent 6cda22710e
commit 917919569c

@ -230,13 +230,13 @@ int main(int argc, char* argv[])
if (parser.hasOption("--numThreads"))
{
// Print warning about mismatch between the --numThreads and -d/--device opton
VTKM_LOG_S_IF(vtkm::cont::LogLevel::Warn,
device != vtkm::cont::DeviceAdapterTagTBB,
VTKM_LOG_IF_S(vtkm::cont::LogLevel::Warn,
device != vtkm::cont::DeviceAdapterTagTBB{},
"WARNING: Mismatch between --numThreads and -d/--device option."
"numThreads option requires the use of TBB as device. "
"Ignoring the numThread option.");
// Set the number of threads to be used for TBB
if (device == vtkm::cont::DeviceAdapterTagTBB)
if (device == vtkm::cont::DeviceAdapterTagTBB{})
{
numThreads = std::stoi(parser.getOption("--numThreads"));
tbb::task_scheduler_init schedulerInit(numThreads);