Line | Branch | Exec | Source |
---|---|---|---|
1 | // SPDX-FileCopyrightText: 2022-2023 Dennis Gläser <dennis.glaeser@iws.uni-stuttgart.de> | ||
2 | // SPDX-License-Identifier: MIT | ||
3 | |||
4 | /*! | ||
5 | * \file | ||
6 | * \ingroup VTK | ||
7 | * \brief Common functionality for writing VTK HDF files. | ||
8 | */ | ||
9 | #ifndef GRIDFORMAT_VTK_HDF_COMMON_HPP_ | ||
10 | #define GRIDFORMAT_VTK_HDF_COMMON_HPP_ | ||
11 | |||
12 | #include <vector> | ||
13 | #include <cstddef> | ||
14 | #include <numeric> | ||
15 | #include <string> | ||
16 | |||
17 | #include <gridformat/common/hdf5.hpp> | ||
18 | #include <gridformat/common/lazy_field.hpp> | ||
19 | #include <gridformat/common/string_conversion.hpp> | ||
20 | |||
21 | namespace GridFormat { | ||
22 | |||
23 | namespace VTK { | ||
24 | |||
25 | //! Options for transient vtk-hdf file formats | ||
26 | struct HDFTransientOptions { | ||
27 | bool static_grid = false; //!< Set to true the grid is the same for all time steps (will only be written once) | ||
28 | bool static_meta_data = true; //!< Set to true if the metadata is same for all time steps (will only be written once) | ||
29 | }; | ||
30 | |||
31 | } // namespace VTK | ||
32 | |||
33 | |||
34 | namespace VTKHDF { | ||
35 | |||
36 | //! Helper class to store processor offsets in parallel writes | ||
37 | struct IOContext { | ||
38 | const int my_rank; | ||
39 | const int num_ranks; | ||
40 | const bool is_parallel; | ||
41 | const std::vector<std::size_t> rank_cells; | ||
42 | const std::vector<std::size_t> rank_points; | ||
43 | const std::size_t num_cells_total; | ||
44 | const std::size_t num_points_total; | ||
45 | const std::size_t my_cell_offset; | ||
46 | const std::size_t my_point_offset; | ||
47 | |||
48 | 189 | IOContext(int _my_rank, | |
49 | int _num_ranks, | ||
50 | std::vector<std::size_t> _rank_cells, | ||
51 | std::vector<std::size_t> _rank_points) | ||
52 | 189 | : my_rank{_my_rank} | |
53 | 189 | , num_ranks{_num_ranks} | |
54 | 189 | , is_parallel{_num_ranks > 1} | |
55 | 189 | , rank_cells{std::move(_rank_cells)} | |
56 | 189 | , rank_points{std::move(_rank_points)} | |
57 |
1/2✓ Branch 1 taken 189 times.
✗ Branch 2 not taken.
|
189 | , num_cells_total{_accumulate(rank_cells)} |
58 |
1/2✓ Branch 1 taken 189 times.
✗ Branch 2 not taken.
|
189 | , num_points_total{_accumulate(rank_points)} |
59 |
2/2✓ Branch 1 taken 187 times.
✓ Branch 2 taken 2 times.
|
189 | , my_cell_offset{_accumulate_rank_offset(rank_cells)} |
60 |
1/2✓ Branch 1 taken 187 times.
✗ Branch 2 not taken.
|
187 | , my_point_offset{_accumulate_rank_offset(rank_points)} { |
61 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 187 times.
|
187 | if (my_rank >= num_ranks) |
62 | ✗ | throw ValueError(as_error("Given rank is not within communicator size")); | |
63 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 2 taken 185 times.
|
187 | if (num_ranks != static_cast<int>(rank_cells.size())) |
64 |
2/4✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 7 taken 2 times.
✗ Branch 8 not taken.
|
2 | throw ValueError(as_error("Cells vector does not match communicator size")); |
65 |
2/2✓ Branch 1 taken 1 times.
✓ Branch 2 taken 184 times.
|
185 | if (num_ranks != static_cast<int>(rank_points.size())) |
66 |
2/4✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
|
1 | throw ValueError(as_error("Points vector does not match communicator size")); |
67 | 194 | } | |
68 | |||
69 | template<Concepts::Grid Grid, Concepts::Communicator Communicator> | ||
70 | 202 | static IOContext from(const Grid& grid, const Communicator& comm, int root_rank = 0) { | |
71 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
202 | const int size = Parallel::size(comm); |
72 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
202 | const int rank = Parallel::rank(comm); |
73 |
1/2✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
|
202 | const std::size_t num_points = number_of_points(grid); |
74 |
1/2✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
|
202 | const std::size_t num_cells = number_of_cells(grid); |
75 |
2/2✓ Branch 0 taken 68 times.
✓ Branch 1 taken 114 times.
|
202 | if (size == 1) |
76 |
3/6✓ Branch 1 taken 68 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 68 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 68 times.
✗ Branch 8 not taken.
|
360 | return IOContext{rank, size, std::vector{num_cells}, std::vector{num_points}}; |
77 | |||
78 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
130 | const auto all_num_points = Parallel::gather(comm, num_points, root_rank); |
79 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
130 | const auto all_num_cells = Parallel::gather(comm, num_cells, root_rank); |
80 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
130 | const auto my_all_num_points = Parallel::broadcast(comm, all_num_points, root_rank); |
81 |
1/2✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
|
130 | const auto my_all_num_cells = Parallel::broadcast(comm, all_num_cells, root_rank); |
82 |
3/6✓ Branch 1 taken 114 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 114 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 114 times.
✗ Branch 8 not taken.
|
130 | return IOContext{rank, size, my_all_num_cells, my_all_num_points}; |
83 | 130 | } | |
84 | |||
85 | private: | ||
86 | 378 | std::size_t _accumulate(const std::vector<std::size_t>& in) const { | |
87 | 378 | return std::accumulate(in.begin(), in.end(), std::size_t{0}); | |
88 | } | ||
89 | |||
90 | 376 | std::size_t _accumulate_rank_offset(const std::vector<std::size_t>& in) const { | |
91 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 2 taken 374 times.
|
376 | if (in.size() <= static_cast<std::size_t>(my_rank)) |
92 |
1/2✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
2 | throw ValueError("Rank-vector length must be equal to number of ranks"); |
93 | 748 | return std::accumulate(in.begin(), std::next(in.begin(), my_rank), std::size_t{0}); | |
94 | } | ||
95 | }; | ||
96 | |||
97 | #if GRIDFORMAT_HAVE_HIGH_FIVE | ||
98 | |||
99 | /*! | ||
100 | * \ingroup VTKHDF | ||
101 | * \brief Field implementation that draws values from an open HDF5 file upon request. | ||
102 | */ | ||
103 | template<typename C> | ||
104 | class DataSetField : public LazyField<const HDF5::File<C>&> { | ||
105 | using ParentType = LazyField<const HDF5::File<C>&>; | ||
106 | |||
107 | public: | ||
108 | using ParentType::ParentType; | ||
109 | |||
110 | 30 | explicit DataSetField(const HDF5::File<C>& file, std::string path) | |
111 | : ParentType{ | ||
112 | file, | ||
113 | 30 | MDLayout{file.get_dimensions(path).value()}, | |
114 |
2/4✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 18 times.
✗ Branch 5 not taken.
|
30 | DynamicPrecision{file.get_precision(path).value()}, |
115 | 72 | [_p=std::move(path)] (const HDF5::File<C>& file) { | |
116 | 60 | return file.visit_dataset(_p, [&] <typename F> (F&& field) { | |
117 | 18 | return field.serialized(); | |
118 |
1/4✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
|
36 | }); |
119 | } | ||
120 |
4/8✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 18 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 18 times.
✗ Branch 8 not taken.
✓ Branch 11 taken 18 times.
✗ Branch 12 not taken.
|
150 | } {} |
121 | }; | ||
122 | |||
123 | template<typename C> | ||
124 | DataSetField(const HDF5::File<C>&, std::string) -> DataSetField<C>; | ||
125 | |||
126 | template<typename C, typename CB> | ||
127 | DataSetField(const HDF5::File<C>&, MDLayout, DynamicPrecision, CB&&) -> DataSetField<C>; | ||
128 | |||
129 | //! Read the vtk-hdf file type from an hdf5 file | ||
130 | template<typename C> | ||
131 | 184 | std::string get_file_type(const HDF5::File<C>& file) { | |
132 |
3/6✓ Branch 1 taken 112 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 112 times.
✗ Branch 5 not taken.
✗ Branch 7 not taken.
✓ Branch 8 taken 112 times.
|
368 | if (!file.exists("/VTKHDF")) |
133 | ✗ | throw IOError("Given file is not a VTK-HDF file"); | |
134 |
3/6✓ Branch 1 taken 112 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 112 times.
✗ Branch 5 not taken.
✗ Branch 7 not taken.
✓ Branch 8 taken 112 times.
|
368 | if (!file.has_attribute_at("/VTKHDF/Type")) |
135 | ✗ | throw IOError("VTKHDF-Type attribute missing"); | |
136 |
2/4✓ Branch 1 taken 112 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 112 times.
✗ Branch 5 not taken.
|
368 | return file.template read_attribute_to<std::string>("/VTKHDF/Type"); |
137 | } | ||
138 | |||
139 | //! Check that the version stated in the file is supported | ||
140 | template<typename C> | ||
141 | 120 | void check_version_compatibility(const HDF5::File<C>& file, const std::array<std::size_t, 2>& supported) { | |
142 |
3/6✓ Branch 1 taken 74 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 74 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 74 times.
✗ Branch 8 not taken.
|
240 | if (file.has_attribute_at("/VTKHDF/Version")) |
143 |
2/4✓ Branch 1 taken 74 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 74 times.
✗ Branch 5 not taken.
|
462 | file.visit_attribute("/VTKHDF/Version", [&] (auto&& field) { |
144 |
2/44✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✓ Branch 13 taken 56 times.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✓ Branch 46 taken 18 times.
✗ Branch 47 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 52 not taken.
✗ Branch 53 not taken.
✗ Branch 55 not taken.
✗ Branch 56 not taken.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
|
74 | const auto version = field.template export_to<std::vector<std::size_t>>(); |
145 |
10/220✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 53 taken 56 times.
✗ Branch 54 not taken.
✓ Branch 56 taken 56 times.
✗ Branch 57 not taken.
✓ Branch 59 taken 56 times.
✗ Branch 60 not taken.
✓ Branch 61 taken 56 times.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✓ Branch 64 taken 56 times.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✗ Branch 85 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 92 not taken.
✗ Branch 93 not taken.
✗ Branch 95 not taken.
✗ Branch 96 not taken.
✗ Branch 98 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✗ Branch 102 not taken.
✗ Branch 103 not taken.
✗ Branch 105 not taken.
✗ Branch 106 not taken.
✗ Branch 108 not taken.
✗ Branch 109 not taken.
✗ Branch 111 not taken.
✗ Branch 112 not taken.
✗ Branch 113 not taken.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✗ Branch 116 not taken.
✗ Branch 118 not taken.
✗ Branch 119 not taken.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✗ Branch 124 not taken.
✗ Branch 125 not taken.
✗ Branch 126 not taken.
✗ Branch 127 not taken.
✗ Branch 128 not taken.
✗ Branch 129 not taken.
✗ Branch 131 not taken.
✗ Branch 132 not taken.
✗ Branch 134 not taken.
✗ Branch 135 not taken.
✗ Branch 137 not taken.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✗ Branch 140 not taken.
✗ Branch 141 not taken.
✗ Branch 142 not taken.
✗ Branch 144 not taken.
✗ Branch 145 not taken.
✗ Branch 147 not taken.
✗ Branch 148 not taken.
✗ Branch 150 not taken.
✗ Branch 151 not taken.
✗ Branch 152 not taken.
✗ Branch 153 not taken.
✗ Branch 154 not taken.
✗ Branch 155 not taken.
✗ Branch 157 not taken.
✗ Branch 158 not taken.
✗ Branch 160 not taken.
✗ Branch 161 not taken.
✗ Branch 163 not taken.
✗ Branch 164 not taken.
✗ Branch 165 not taken.
✗ Branch 166 not taken.
✗ Branch 167 not taken.
✗ Branch 168 not taken.
✗ Branch 170 not taken.
✗ Branch 171 not taken.
✗ Branch 173 not taken.
✗ Branch 174 not taken.
✗ Branch 176 not taken.
✗ Branch 177 not taken.
✗ Branch 178 not taken.
✗ Branch 179 not taken.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✗ Branch 183 not taken.
✗ Branch 184 not taken.
✗ Branch 186 not taken.
✗ Branch 187 not taken.
✗ Branch 189 not taken.
✗ Branch 190 not taken.
✗ Branch 191 not taken.
✗ Branch 192 not taken.
✗ Branch 193 not taken.
✗ Branch 194 not taken.
✓ Branch 196 taken 18 times.
✗ Branch 197 not taken.
✓ Branch 199 taken 18 times.
✗ Branch 200 not taken.
✓ Branch 202 taken 18 times.
✗ Branch 203 not taken.
✓ Branch 204 taken 18 times.
✗ Branch 205 not taken.
✗ Branch 206 not taken.
✓ Branch 207 taken 18 times.
✗ Branch 209 not taken.
✗ Branch 210 not taken.
✗ Branch 212 not taken.
✗ Branch 213 not taken.
✗ Branch 215 not taken.
✗ Branch 216 not taken.
✗ Branch 217 not taken.
✗ Branch 218 not taken.
✗ Branch 219 not taken.
✗ Branch 220 not taken.
✗ Branch 222 not taken.
✗ Branch 223 not taken.
✗ Branch 225 not taken.
✗ Branch 226 not taken.
✗ Branch 228 not taken.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✗ Branch 231 not taken.
✗ Branch 232 not taken.
✗ Branch 233 not taken.
✗ Branch 235 not taken.
✗ Branch 236 not taken.
✗ Branch 238 not taken.
✗ Branch 239 not taken.
✗ Branch 241 not taken.
✗ Branch 242 not taken.
✗ Branch 243 not taken.
✗ Branch 244 not taken.
✗ Branch 245 not taken.
✗ Branch 246 not taken.
✗ Branch 248 not taken.
✗ Branch 249 not taken.
✗ Branch 251 not taken.
✗ Branch 252 not taken.
✗ Branch 254 not taken.
✗ Branch 255 not taken.
✗ Branch 256 not taken.
✗ Branch 257 not taken.
✗ Branch 258 not taken.
✗ Branch 259 not taken.
✗ Branch 261 not taken.
✗ Branch 262 not taken.
✗ Branch 264 not taken.
✗ Branch 265 not taken.
✗ Branch 267 not taken.
✗ Branch 268 not taken.
✗ Branch 269 not taken.
✗ Branch 270 not taken.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✗ Branch 274 not taken.
✗ Branch 275 not taken.
✗ Branch 277 not taken.
✗ Branch 278 not taken.
✗ Branch 280 not taken.
✗ Branch 281 not taken.
✗ Branch 282 not taken.
✗ Branch 283 not taken.
✗ Branch 284 not taken.
✗ Branch 285 not taken.
|
222 | if ((version.size() > 0 && version.at(0) > supported[0]) || |
146 |
10/176✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
✓ Branch 54 taken 56 times.
✗ Branch 55 not taken.
✓ Branch 57 taken 25 times.
✓ Branch 58 taken 31 times.
✓ Branch 60 taken 25 times.
✗ Branch 61 not taken.
✗ Branch 63 not taken.
✓ Branch 64 taken 25 times.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 73 not taken.
✗ Branch 74 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 80 not taken.
✗ Branch 81 not taken.
✗ Branch 83 not taken.
✗ Branch 84 not taken.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✗ Branch 93 not taken.
✗ Branch 94 not taken.
✗ Branch 96 not taken.
✗ Branch 97 not taken.
✗ Branch 99 not taken.
✗ Branch 100 not taken.
✗ Branch 102 not taken.
✗ Branch 103 not taken.
✗ Branch 106 not taken.
✗ Branch 107 not taken.
✗ Branch 109 not taken.
✗ Branch 110 not taken.
✗ Branch 112 not taken.
✗ Branch 113 not taken.
✗ Branch 115 not taken.
✗ Branch 116 not taken.
✗ Branch 119 not taken.
✗ Branch 120 not taken.
✗ Branch 122 not taken.
✗ Branch 123 not taken.
✗ Branch 125 not taken.
✗ Branch 126 not taken.
✗ Branch 128 not taken.
✗ Branch 129 not taken.
✗ Branch 132 not taken.
✗ Branch 133 not taken.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✗ Branch 141 not taken.
✗ Branch 142 not taken.
✗ Branch 145 not taken.
✗ Branch 146 not taken.
✗ Branch 148 not taken.
✗ Branch 149 not taken.
✗ Branch 151 not taken.
✗ Branch 152 not taken.
✗ Branch 154 not taken.
✗ Branch 155 not taken.
✗ Branch 158 not taken.
✗ Branch 159 not taken.
✗ Branch 161 not taken.
✗ Branch 162 not taken.
✗ Branch 164 not taken.
✗ Branch 165 not taken.
✗ Branch 167 not taken.
✗ Branch 168 not taken.
✗ Branch 171 not taken.
✗ Branch 172 not taken.
✗ Branch 174 not taken.
✗ Branch 175 not taken.
✗ Branch 177 not taken.
✗ Branch 178 not taken.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✗ Branch 184 not taken.
✗ Branch 185 not taken.
✗ Branch 187 not taken.
✗ Branch 188 not taken.
✗ Branch 190 not taken.
✗ Branch 191 not taken.
✗ Branch 193 not taken.
✗ Branch 194 not taken.
✓ Branch 197 taken 18 times.
✗ Branch 198 not taken.
✓ Branch 200 taken 9 times.
✓ Branch 201 taken 9 times.
✓ Branch 203 taken 9 times.
✗ Branch 204 not taken.
✗ Branch 206 not taken.
✓ Branch 207 taken 9 times.
✗ Branch 210 not taken.
✗ Branch 211 not taken.
✗ Branch 213 not taken.
✗ Branch 214 not taken.
✗ Branch 216 not taken.
✗ Branch 217 not taken.
✗ Branch 219 not taken.
✗ Branch 220 not taken.
✗ Branch 223 not taken.
✗ Branch 224 not taken.
✗ Branch 226 not taken.
✗ Branch 227 not taken.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✗ Branch 232 not taken.
✗ Branch 233 not taken.
✗ Branch 236 not taken.
✗ Branch 237 not taken.
✗ Branch 239 not taken.
✗ Branch 240 not taken.
✗ Branch 242 not taken.
✗ Branch 243 not taken.
✗ Branch 245 not taken.
✗ Branch 246 not taken.
✗ Branch 249 not taken.
✗ Branch 250 not taken.
✗ Branch 252 not taken.
✗ Branch 253 not taken.
✗ Branch 255 not taken.
✗ Branch 256 not taken.
✗ Branch 258 not taken.
✗ Branch 259 not taken.
✗ Branch 262 not taken.
✗ Branch 263 not taken.
✗ Branch 265 not taken.
✗ Branch 266 not taken.
✗ Branch 268 not taken.
✗ Branch 269 not taken.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✗ Branch 275 not taken.
✗ Branch 276 not taken.
✗ Branch 278 not taken.
✗ Branch 279 not taken.
✗ Branch 281 not taken.
✗ Branch 282 not taken.
✗ Branch 284 not taken.
✗ Branch 285 not taken.
|
148 | (version.size() > 1 && version.at(0) == supported[0] && version.at(1) > supported[1])) |
147 | ✗ | throw ValueError( | |
148 | ✗ | "File version is higher than supported by the reader (" + as_string(supported, ".") + ")" | |
149 | ); | ||
150 | 74 | }); | |
151 | 120 | } | |
152 | |||
153 | #endif // GRIDFORMAT_HAVE_HIGH_FIVE | ||
154 | |||
155 | } // namespace VTKHDF | ||
156 | } // namespace GridFormat | ||
157 | |||
158 | #endif // GRIDFORMAT_VTK_HDF_COMMON_HPP_ | ||
159 |