Commit b533ff84 authored by Burlen Loring's avatar Burlen Loring

Merge branch 'vtkm_analysis_config_issue' into 'master'

fix a typo

See merge request !106
parents 2b4a7d11 05d6854d
......@@ -300,12 +300,8 @@ int ConfigurableAnalysis::InternalsType::AddVTKmVolumeReduction(pugi::xml_node n
SENSEI_ERROR("VTK-m analysis was requested but is disabled in this build")
return -1;
#else
if (
requireAttribute(node, "mesh") ||
requireAttribute(node, "field") ||
requireAttribute(node, "association") ||
requireAttribute(node, "reduction")
)
if (requireAttribute(node, "mesh") || requireAttribute(node, "field") ||
requireAttribute(node, "association") || requireAttribute(node, "reduction"))
{
SENSEI_ERROR("Failed to initialize VTKmVolumeReductionAnalysis");
return -1;
......@@ -316,8 +312,7 @@ int ConfigurableAnalysis::InternalsType::AddVTKmVolumeReduction(pugi::xml_node n
auto assoc = node.attribute("association").as_string();
auto reduction = node.attribute("reduction").as_int();
bool haveWorkDir = !!node.attribute("working-directory");
std::string workDir = haveWorkDir ? node.attribute("working-directory").as_string() : ".";
std::string workDir = node.attribute("working-directory").as_string(".");
auto reducer = vtkSmartPointer<VTKmVolumeReductionAnalysis>::New();
this->TimeInitialization(reducer, [&]() {
......
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