|
34 | 34 | #include "openPMD/auxiliary/Variant.hpp" |
35 | 35 | #include "openPMD/backend/Attributable.hpp" |
36 | 36 | #include "openPMD/backend/BaseRecordComponent.hpp" |
37 | | -#include "openPMD/backend/HierarchyVisitorImpl.hpp" |
38 | 37 | #include "openPMD/backend/Variant_internal.hpp" |
39 | 38 | #include "openPMD/backend/Writable.hpp" |
40 | 39 | #include "openPMD/backend/scientific_defaults/ConfigAttribute.hpp" |
@@ -128,7 +127,7 @@ Iteration &Iteration::close(bool _flush) |
128 | 127 |
|
129 | 128 | // if (access::write(IOHandler()->m_frontendAccess)) |
130 | 129 | // { |
131 | | - // populateDefaultMetadata(); |
| 130 | + // commitStructuralSetup(); |
132 | 131 | // } |
133 | 132 |
|
134 | 133 | if (_flush) |
@@ -245,41 +244,6 @@ bool Iteration::closedByWriter() const |
245 | 244 | } |
246 | 245 | } |
247 | 246 |
|
248 | | -void Iteration::populateDefaultMetadata() |
249 | | -{ |
250 | | - auto standard = IOHandler()->m_standard; |
251 | | - visitHierarchyFromLambda([standard](auto &component) { |
252 | | - using ComponentType = std::remove_reference_t<decltype(component)>; |
253 | | - if constexpr (auxiliary::IsTemplateBaseOf_v<BaseRecord, ComponentType>) |
254 | | - { |
255 | | - if (component.empty() && !component.datasetDefined()) |
256 | | - { |
257 | | - std::cerr |
258 | | - << "Cannot flush Record without any contained components:'" |
259 | | - << component.myPath().openPMDPath() << "'. Will ignore."; |
260 | | - if (component.written()) |
261 | | - { |
262 | | - std::cerr |
263 | | - << "\n(Note: The Record seems to have been written " |
264 | | - "previously?)"; |
265 | | - } |
266 | | - std::cerr << std::endl; |
267 | | - return; |
268 | | - } |
269 | | - } |
270 | | - |
271 | | - if constexpr ( |
272 | | - !std::is_same_v<ComponentType, Iterations> && |
273 | | - !std::is_same_v<ComponentType, Meshes> && |
274 | | - !std::is_same_v<ComponentType, ParticlePatches> && |
275 | | - !std::is_same_v<ComponentType, Particles> && |
276 | | - !std::is_same_v<ComponentType, Series>) |
277 | | - { |
278 | | - component.writeDefaults(standard); |
279 | | - } |
280 | | - }); |
281 | | -} |
282 | | - |
283 | 247 | void Iteration::flushFileBased( |
284 | 248 | std::string const &filename, |
285 | 249 | IterationIndex_t i, |
|
0 commit comments