mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Check if default ghost cell field is requested for use
This commit is contained in:
parent
63e7b2336a
commit
72f8bb9cce
@ -317,7 +317,9 @@ VTKM_CONT GhostCellRemove::GhostCellRemove()
|
||||
VTKM_CONT vtkm::cont::DataSet GhostCellRemove::DoExecute(const vtkm::cont::DataSet& input)
|
||||
{
|
||||
const vtkm::cont::UnknownCellSet& cells = input.GetCellSet();
|
||||
const auto& field = this->GetFieldFromDataSet(input);
|
||||
const vtkm::cont::Field& field =
|
||||
(this->GetUseGhostCellsAsField() ? input.GetGhostCellField()
|
||||
: this->GetFieldFromDataSet(input));
|
||||
|
||||
vtkm::cont::ArrayHandle<vtkm::UInt8> fieldArray;
|
||||
vtkm::cont::ArrayCopyShallowIfPossible(field.GetData(), fieldArray);
|
||||
|
Loading…
Reference in New Issue
Block a user