mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
63050f68fc
The `MultiBlock` class has been renamed to `PartitionedDataSet`, and its API has been refactored to refer to "partitions", rather than "blocks". Additionally, the `AddBlocks` method has been changed to `AppendPartitions` to more accurately reflect the operation performed. The associated `AssignerMultiBlock` class has also been renamed to `AssignerPartitionedDataSet`. This change is motivated towards unifying VTK-m's data model with VTK. VTK has started to move away from `vtkMultiBlockDataSet`, which is a hierarchical tree of nested datasets, to `vtkPartitionedDataSet`, which is always a flat vector of datasets used to assist geometry distribution in multi-process environments. This simplifies traversal during processing and clarifies the intent of the container: The component datasets are partitions for distribution, not organizational groupings (e.g. materials). Ref #405
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
//============================================================================
|
|
// Copyright (c) Kitware, Inc.
|
|
// All rights reserved.
|
|
// See LICENSE.txt for details.
|
|
//
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
//============================================================================
|
|
#ifndef vtk_m_cont_BoundsCompute_h
|
|
#define vtk_m_cont_BoundsCompute_h
|
|
|
|
#include <vtkm/Bounds.h>
|
|
#include <vtkm/cont/vtkm_cont_export.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace cont
|
|
{
|
|
|
|
class DataSet;
|
|
class PartitionedDataSet;
|
|
|
|
//@{
|
|
/// \brief Functions to compute bounds for a single dataSset or partition dataset
|
|
///
|
|
/// These are utility functions that compute bounds for a single dataset or
|
|
/// partitioned dataset. When VTK-m is operating in an distributed environment,
|
|
/// these are bounds on the local process. To get global bounds across all
|
|
/// ranks, use `vtkm::cont::BoundsGlobalCompute` instead.
|
|
///
|
|
/// Note that if the provided CoordinateSystem does not exists, empty bounds
|
|
/// are returned. Likewise, for PartitionedDataSet, partitions without the
|
|
/// chosen CoordinateSystem are skipped.
|
|
VTKM_CONT_EXPORT
|
|
VTKM_CONT
|
|
vtkm::Bounds BoundsCompute(const vtkm::cont::DataSet& dataset,
|
|
vtkm::Id coordinate_system_index = 0);
|
|
|
|
VTKM_CONT_EXPORT
|
|
VTKM_CONT
|
|
vtkm::Bounds BoundsCompute(const vtkm::cont::PartitionedDataSet& pds,
|
|
vtkm::Id coordinate_system_index = 0);
|
|
|
|
VTKM_CONT_EXPORT
|
|
VTKM_CONT
|
|
vtkm::Bounds BoundsCompute(const vtkm::cont::DataSet& dataset,
|
|
const std::string& coordinate_system_name);
|
|
|
|
VTKM_CONT_EXPORT
|
|
VTKM_CONT
|
|
vtkm::Bounds BoundsCompute(const vtkm::cont::PartitionedDataSet& pds,
|
|
const std::string& coordinate_system_name);
|
|
//@}
|
|
}
|
|
}
|
|
|
|
#endif
|