@@ -247,35 +247,37 @@ bool Iteration::closedByWriter() const
247247void Iteration::populateDefaultMetadata ()
248248{
249249 auto standard = IOHandler ()->m_standard ;
250- visitHierarchy ([standard](auto &component) {
251- using ComponentType = std::remove_reference_t <decltype (component)>;
252- if constexpr (auxiliary::IsTemplateBaseOf_v<BaseRecord, ComponentType>)
253- {
254- if (component.empty () && !component.datasetDefined ())
255- {
256- std::cerr
257- << " Cannot flush Record without any contained components: '"
258- << component.myPath ().openPMDPath () << " '. Will ignore." ;
259- if (component.written ())
260- {
261- std::cerr
262- << " \n (Note: The Record seems to have been written "
263- " previously?)" ;
264- }
265- std::cerr << std::endl;
266- return ;
267- }
268- }
269-
270- if constexpr (
271- !std::is_same_v<ComponentType, Container<Mesh>> &&
272- !std::is_same_v<ComponentType, Container<Record>> &&
273- !std::is_same_v<ComponentType, Container<PatchRecord>> &&
274- !std::is_same_v<ComponentType, Container<ParticleSpecies>>)
275- {
276- component.writeDefaults (standard);
277- }
278- });
250+ // visitHierarchy([standard](auto &component) {
251+ // using ComponentType = std::remove_reference_t<decltype(component)>;
252+ // if constexpr (auxiliary::IsTemplateBaseOf_v<BaseRecord,
253+ // ComponentType>)
254+ // {
255+ // if (component.empty() && !component.datasetDefined())
256+ // {
257+ // std::cerr
258+ // << "Cannot flush Record without any contained components:
259+ // '"
260+ // << component.myPath().openPMDPath() << "'. Will ignore.";
261+ // if (component.written())
262+ // {
263+ // std::cerr
264+ // << "\n(Note: The Record seems to have been written "
265+ // "previously?)";
266+ // }
267+ // std::cerr << std::endl;
268+ // return;
269+ // }
270+ // }
271+
272+ // if constexpr (
273+ // !std::is_same_v<ComponentType, Container<Mesh>> &&
274+ // !std::is_same_v<ComponentType, Container<Record>> &&
275+ // !std::is_same_v<ComponentType, Container<PatchRecord>> &&
276+ // !std::is_same_v<ComponentType, Container<ParticleSpecies>>)
277+ // {
278+ // component.writeDefaults(standard);
279+ // }
280+ // });
279281}
280282
281283void Iteration::flushFileBased (
0 commit comments