VTK
9.7.20261103
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
IO
HDF
Testing
Cxx
HDFWriterDistributedTestUtilities.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#ifndef HDFWriterDistributedTestUtilities_h
5
#define HDFWriterDistributedTestUtilities_h
6
7
#include "
vtkDataObjectAlgorithm.h
"
8
#include "
vtkSmartPointer.h
"
9
10
#include <cstdint>
11
#include <string>
12
#include <vector>
13
19
namespace
HDFWriterDistributedTestUtilities
20
{
21
constexpr
int
NumberOfSteps
= 4;
22
23
enum class
DataType
24
{
25
UnstructuredGrid
,
26
PolyData
,
27
};
28
enum class
TemporalType
29
{
30
NoTemporal
,
31
Temporal
,
32
};
33
enum class
StaticMeshType
34
{
35
NoStatic
,
36
Static
,
37
};
38
enum class
PolyhedronsType
39
{
40
NoPolyhedrons
,
41
Polyhedrons
42
};
43
enum class
CompositeType
44
{
45
NoComposite
,
46
Multiblock
,
47
PDC
,
48
};
49
enum
ExternalType
50
{
51
NoExternal
= 0,
52
Time
= 1,
53
Distributed
= 2,
54
Composite
= 4,
55
Partitions
= 8,
56
};
57
58
struct
Configuration
59
{
60
std::string
Name
;
61
std::vector<DataType>
Types
{
DataType::UnstructuredGrid
};
62
std::vector<uint8_t>
PartitionCounts
;
63
CompositeType
Composite
=
CompositeType::NoComposite
;
64
ExternalType
External
=
ExternalType::NoExternal
;
65
TemporalType
Temporal
=
TemporalType::NoTemporal
;
66
PolyhedronsType
Polyhedrons
=
PolyhedronsType::NoPolyhedrons
;
67
StaticMeshType
StaticMesh
=
StaticMeshType::NoStatic
;
68
int
EmptyRank
= -1;
69
};
70
74
vtkSmartPointer<vtkDataObjectAlgorithm>
MakeConfigurationSource
(
const
Configuration
& config);
75
79
std::vector<Configuration>
MakeBaseConfigurations
(
DataType
type);
80
87
std::vector<Configuration>
GenerateConfigurations
(
const
std::vector<Configuration>& bases);
88
92
bool
RunDistributedConfigurations
(
int
argc,
char
* argv[], std::vector<Configuration> configs);
93
94
}
95
96
#endif
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition
vtkSmartPointer.h:141
HDFWriterDistributedTestUtilities
Utility header providing the functions to test the vtkHDFWriter using a custom customizable source,...
Definition
HDFWriterDistributedTestUtilities.h:20
HDFWriterDistributedTestUtilities::StaticMeshType
StaticMeshType
Definition
HDFWriterDistributedTestUtilities.h:34
HDFWriterDistributedTestUtilities::StaticMeshType::Static
@ Static
Definition
HDFWriterDistributedTestUtilities.h:36
HDFWriterDistributedTestUtilities::StaticMeshType::NoStatic
@ NoStatic
Definition
HDFWriterDistributedTestUtilities.h:35
HDFWriterDistributedTestUtilities::MakeBaseConfigurations
std::vector< Configuration > MakeBaseConfigurations(DataType type)
Generate base configurations from the provided data type.
HDFWriterDistributedTestUtilities::NumberOfSteps
constexpr int NumberOfSteps
Definition
HDFWriterDistributedTestUtilities.h:21
HDFWriterDistributedTestUtilities::ExternalType
ExternalType
Definition
HDFWriterDistributedTestUtilities.h:50
HDFWriterDistributedTestUtilities::NoExternal
@ NoExternal
Definition
HDFWriterDistributedTestUtilities.h:51
HDFWriterDistributedTestUtilities::Distributed
@ Distributed
Definition
HDFWriterDistributedTestUtilities.h:53
HDFWriterDistributedTestUtilities::Composite
@ Composite
Definition
HDFWriterDistributedTestUtilities.h:54
HDFWriterDistributedTestUtilities::Time
@ Time
Definition
HDFWriterDistributedTestUtilities.h:52
HDFWriterDistributedTestUtilities::Partitions
@ Partitions
Definition
HDFWriterDistributedTestUtilities.h:55
HDFWriterDistributedTestUtilities::MakeConfigurationSource
vtkSmartPointer< vtkDataObjectAlgorithm > MakeConfigurationSource(const Configuration &config)
Build the custom source with given config.
HDFWriterDistributedTestUtilities::TemporalType
TemporalType
Definition
HDFWriterDistributedTestUtilities.h:29
HDFWriterDistributedTestUtilities::TemporalType::Temporal
@ Temporal
Definition
HDFWriterDistributedTestUtilities.h:31
HDFWriterDistributedTestUtilities::TemporalType::NoTemporal
@ NoTemporal
Definition
HDFWriterDistributedTestUtilities.h:30
HDFWriterDistributedTestUtilities::GenerateConfigurations
std::vector< Configuration > GenerateConfigurations(const std::vector< Configuration > &bases)
From the base configurations, generate possible option combinations using external options,...
HDFWriterDistributedTestUtilities::RunDistributedConfigurations
bool RunDistributedConfigurations(int argc, char *argv[], std::vector< Configuration > configs)
Run all configurations, log progress, return true if all passed.
HDFWriterDistributedTestUtilities::DataType
DataType
Definition
HDFWriterDistributedTestUtilities.h:24
HDFWriterDistributedTestUtilities::DataType::UnstructuredGrid
@ UnstructuredGrid
Definition
HDFWriterDistributedTestUtilities.h:25
HDFWriterDistributedTestUtilities::DataType::PolyData
@ PolyData
Definition
HDFWriterDistributedTestUtilities.h:26
HDFWriterDistributedTestUtilities::PolyhedronsType
PolyhedronsType
Definition
HDFWriterDistributedTestUtilities.h:39
HDFWriterDistributedTestUtilities::PolyhedronsType::Polyhedrons
@ Polyhedrons
Definition
HDFWriterDistributedTestUtilities.h:41
HDFWriterDistributedTestUtilities::PolyhedronsType::NoPolyhedrons
@ NoPolyhedrons
Definition
HDFWriterDistributedTestUtilities.h:40
HDFWriterDistributedTestUtilities::CompositeType
CompositeType
Definition
HDFWriterDistributedTestUtilities.h:44
HDFWriterDistributedTestUtilities::CompositeType::Multiblock
@ Multiblock
Definition
HDFWriterDistributedTestUtilities.h:46
HDFWriterDistributedTestUtilities::CompositeType::PDC
@ PDC
Definition
HDFWriterDistributedTestUtilities.h:47
HDFWriterDistributedTestUtilities::CompositeType::NoComposite
@ NoComposite
Definition
HDFWriterDistributedTestUtilities.h:45
HDFWriterDistributedTestUtilities::Configuration
Definition
HDFWriterDistributedTestUtilities.h:59
HDFWriterDistributedTestUtilities::Configuration::Polyhedrons
PolyhedronsType Polyhedrons
Definition
HDFWriterDistributedTestUtilities.h:66
HDFWriterDistributedTestUtilities::Configuration::Temporal
TemporalType Temporal
Definition
HDFWriterDistributedTestUtilities.h:65
HDFWriterDistributedTestUtilities::Configuration::StaticMesh
StaticMeshType StaticMesh
Definition
HDFWriterDistributedTestUtilities.h:67
HDFWriterDistributedTestUtilities::Configuration::Name
std::string Name
Definition
HDFWriterDistributedTestUtilities.h:60
HDFWriterDistributedTestUtilities::Configuration::PartitionCounts
std::vector< uint8_t > PartitionCounts
Definition
HDFWriterDistributedTestUtilities.h:62
HDFWriterDistributedTestUtilities::Configuration::External
ExternalType External
Definition
HDFWriterDistributedTestUtilities.h:64
HDFWriterDistributedTestUtilities::Configuration::Composite
CompositeType Composite
Definition
HDFWriterDistributedTestUtilities.h:63
HDFWriterDistributedTestUtilities::Configuration::Types
std::vector< DataType > Types
Definition
HDFWriterDistributedTestUtilities.h:61
HDFWriterDistributedTestUtilities::Configuration::EmptyRank
int EmptyRank
Definition
HDFWriterDistributedTestUtilities.h:68
vtkDataObjectAlgorithm.h
vtkSmartPointer.h
Generated on
for VTK by
1.16.1