mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 10:35:42 +00:00
Fix bug in TreeGrafter::CopyIterationDetails
Fix bug in TreeGrafter::CopyIterationDetails to set last FirstSupernodePerIteration
This commit is contained in:
parent
d23560edd2
commit
c48f707bdd
@ -1426,7 +1426,6 @@ void TreeGrafter<MeshType, FieldType>::CopyIterationDetails(
|
||||
vtkm::Id nOldHypernodes = nTotalHypernodes - nNewHypernodes;
|
||||
|
||||
#ifdef DEBUG_PRINT
|
||||
// TODO: Hamish why do we need this debug print. It looks like the hierarchical tree does not change
|
||||
VTKM_LOG_S(vtkm::cont::LogLevel::Info,
|
||||
hierarchicalTree.DebugPrint("Node Counts Retrieved", __FILE__, __LINE__));
|
||||
VTKM_LOG_S(vtkm::cont::LogLevel::Info,
|
||||
@ -1450,6 +1449,13 @@ void TreeGrafter<MeshType, FieldType>::CopyIterationDetails(
|
||||
hierarchicalTree.WhichIteration, // input
|
||||
hierarchicalTree.FirstSupernodePerIteration[static_cast<std::size_t>(theRound)] // output.
|
||||
);
|
||||
|
||||
// force the extra one to be one-off-the end for safety
|
||||
vtkm::worklet::contourtree_augmented::IdArraySetValue(
|
||||
this->NumTransferIterations, // index to set
|
||||
hierarchicalTree.Supernodes.GetNumberOfValues(), // value to set
|
||||
hierarchicalTree.FirstSupernodePerIteration[theRound] // array to modify
|
||||
);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_PRINT_GRAFT_RESIDUE
|
||||
|
Loading…
Reference in New Issue
Block a user