mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Merge topic 'fix-ct-bd-crash'
e598fd635 Refer to field by name instead of index to fix crash in contour tree exmaple. Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kenneth Moreland <morelandkd@ornl.gov> Merge-request: !3034
This commit is contained in:
commit
04e8b60e1d
@ -756,14 +756,13 @@ int main(int argc, char* argv[])
|
||||
//----Isovalue seleciton start
|
||||
if (numLevels > 0) // if compute isovalues
|
||||
{
|
||||
// Get the data values for computing the explicit branch decomposition
|
||||
#ifdef WITH_MPI
|
||||
// Get the data values for computing the explicit branch decomposition
|
||||
vtkm::cont::ArrayHandle<ValueType> dataField;
|
||||
result.GetPartitions()[0].GetField(0).GetData().AsArrayHandle(dataField);
|
||||
#ifdef WITH_MPI
|
||||
result.GetPartitions()[0].GetField("values").GetData().AsArrayHandle(dataField);
|
||||
bool dataFieldIsSorted = true;
|
||||
#else
|
||||
vtkm::cont::ArrayHandle<ValueType> dataField;
|
||||
useDataSet.GetField(0).GetData().AsArrayHandle(dataField);
|
||||
useDataSet.GetField("values").GetData().AsArrayHandle(dataField);
|
||||
bool dataFieldIsSorted = false;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user