diff --git a/examples/contour_tree_distributed/ContourTreeApp.cxx b/examples/contour_tree_distributed/ContourTreeApp.cxx index 808dc56bc..e892388bd 100644 --- a/examples/contour_tree_distributed/ContourTreeApp.cxx +++ b/examples/contour_tree_distributed/ContourTreeApp.cxx @@ -411,6 +411,7 @@ int main(int argc, char* argv[]) auto localBlockOriginsPortal = localBlockOrigins.WritePortal(); auto localBlockSizesPortal = localBlockSizes.WritePortal(); + // Read the pre-split data files if (preSplitFiles) { for (int blockNo = 0; blockNo < blocksPerRank; ++blockNo) @@ -564,7 +565,7 @@ int main(int argc, char* argv[]) } // Read data - using ValueType = vtkm::FloatDefault; + using ValueType = vtkm::Float64; std::vector values(numVertices); if (filename.compare(filename.length() - 5, 5, ".bdem") == 0) { @@ -669,13 +670,17 @@ int main(int argc, char* argv[]) << " Number of dimensions: " << nDims << std::endl); } } + // Read single-block data and split it for the ranks else { vtkm::cont::DataSet inDataSet; - using ValueType = vtkm::FloatDefault; + // Currently FloatDefualt would be fine, but it could cause problems if we ever + // read binary files here. + using ValueType = vtkm::Float64; std::vector values; std::vector dims; + // Read BOV data file if (filename.compare(filename.length() - 3, 3, "bov") == 0) { std::cout << "Reading BOV file" << std::endl; @@ -703,7 +708,8 @@ int main(int argc, char* argv[]) vtkm::cont::ArrayCopy(tempFieldData.ResetTypes(vtkm::List{}), valuesHandle); valuesHandle.SyncControlArray(); //Forces values to get updated if copy happened on GPU } - else // Read ASCII data input + // Read ASCII data input + else { std::cout << "Reading ASCII file" << std::endl; std::ifstream inFile(filename);