VTK
9.7.20261126
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
AddTemporal
,
33
};
34
enum class
StaticMeshType
35
{
36
NoStatic
,
37
Static
,
38
};
39
enum class
PolyhedronsType
40
{
41
NoPolyhedrons
,
42
Polyhedrons
43
};
44
enum class
CompositeType
45
{
46
NoComposite
,
47
Multiblock
,
48
PDC
,
49
};
50
enum
ExternalType
51
{
52
NoExternal
= 0,
53
Time
= 1,
54
Distributed
= 2,
55
Composite
= 4,
56
Partitions
= 8,
57
};
58
59
struct
Configuration
60
{
61
std::string
Name
;
62
std::vector<DataType>
Types
{
DataType::UnstructuredGrid
};
63
std::vector<uint8_t>
PartitionCounts
;
64
CompositeType
Composite
=
CompositeType::NoComposite
;
65
ExternalType
External
=
ExternalType::NoExternal
;
66
TemporalType
Temporal
=
TemporalType::NoTemporal
;
67
PolyhedronsType
Polyhedrons
=
PolyhedronsType::NoPolyhedrons
;
68
StaticMeshType
StaticMesh
=
StaticMeshType::NoStatic
;
69
int
EmptyRank
= -1;
70
bool
debug
=
false
;
71
};
72
76
vtkSmartPointer<vtkDataObjectAlgorithm>
MakeConfigurationSource
(
const
Configuration
& config);
77
81
std::vector<Configuration>
MakeBaseConfigurations
(
DataType
type);
82
89
std::vector<Configuration>
GenerateConfigurations
(
const
std::vector<Configuration>& bases);
90
94
bool
RunDistributedConfigurations
(
int
argc,
char
* argv[], std::vector<Configuration> configs);
95
96
}
97
98
#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:35
HDFWriterDistributedTestUtilities::StaticMeshType::Static
@ Static
Definition
HDFWriterDistributedTestUtilities.h:37
HDFWriterDistributedTestUtilities::StaticMeshType::NoStatic
@ NoStatic
Definition
HDFWriterDistributedTestUtilities.h:36
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:51
HDFWriterDistributedTestUtilities::NoExternal
@ NoExternal
Definition
HDFWriterDistributedTestUtilities.h:52
HDFWriterDistributedTestUtilities::Distributed
@ Distributed
Definition
HDFWriterDistributedTestUtilities.h:54
HDFWriterDistributedTestUtilities::Composite
@ Composite
Definition
HDFWriterDistributedTestUtilities.h:55
HDFWriterDistributedTestUtilities::Time
@ Time
Definition
HDFWriterDistributedTestUtilities.h:53
HDFWriterDistributedTestUtilities::Partitions
@ Partitions
Definition
HDFWriterDistributedTestUtilities.h:56
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::TemporalType::AddTemporal
@ AddTemporal
Definition
HDFWriterDistributedTestUtilities.h:32
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:40
HDFWriterDistributedTestUtilities::PolyhedronsType::Polyhedrons
@ Polyhedrons
Definition
HDFWriterDistributedTestUtilities.h:42
HDFWriterDistributedTestUtilities::PolyhedronsType::NoPolyhedrons
@ NoPolyhedrons
Definition
HDFWriterDistributedTestUtilities.h:41
HDFWriterDistributedTestUtilities::CompositeType
CompositeType
Definition
HDFWriterDistributedTestUtilities.h:45
HDFWriterDistributedTestUtilities::CompositeType::Multiblock
@ Multiblock
Definition
HDFWriterDistributedTestUtilities.h:47
HDFWriterDistributedTestUtilities::CompositeType::PDC
@ PDC
Definition
HDFWriterDistributedTestUtilities.h:48
HDFWriterDistributedTestUtilities::CompositeType::NoComposite
@ NoComposite
Definition
HDFWriterDistributedTestUtilities.h:46
HDFWriterDistributedTestUtilities::Configuration
Definition
HDFWriterDistributedTestUtilities.h:60
HDFWriterDistributedTestUtilities::Configuration::debug
bool debug
Definition
HDFWriterDistributedTestUtilities.h:70
HDFWriterDistributedTestUtilities::Configuration::Polyhedrons
PolyhedronsType Polyhedrons
Definition
HDFWriterDistributedTestUtilities.h:67
HDFWriterDistributedTestUtilities::Configuration::Temporal
TemporalType Temporal
Definition
HDFWriterDistributedTestUtilities.h:66
HDFWriterDistributedTestUtilities::Configuration::StaticMesh
StaticMeshType StaticMesh
Definition
HDFWriterDistributedTestUtilities.h:68
HDFWriterDistributedTestUtilities::Configuration::Name
std::string Name
Definition
HDFWriterDistributedTestUtilities.h:61
HDFWriterDistributedTestUtilities::Configuration::PartitionCounts
std::vector< uint8_t > PartitionCounts
Definition
HDFWriterDistributedTestUtilities.h:63
HDFWriterDistributedTestUtilities::Configuration::External
ExternalType External
Definition
HDFWriterDistributedTestUtilities.h:65
HDFWriterDistributedTestUtilities::Configuration::Composite
CompositeType Composite
Definition
HDFWriterDistributedTestUtilities.h:64
HDFWriterDistributedTestUtilities::Configuration::Types
std::vector< DataType > Types
Definition
HDFWriterDistributedTestUtilities.h:62
HDFWriterDistributedTestUtilities::Configuration::EmptyRank
int EmptyRank
Definition
HDFWriterDistributedTestUtilities.h:69
vtkDataObjectAlgorithm.h
vtkSmartPointer.h
Generated on
for VTK by
1.16.1