@@ -474,8 +474,18 @@ void CustomHierarchy::read(
474474 {
475475 switch (mpp.determineType (currentPath))
476476 {
477- // Group is a bit of an internal misnomer here, it just means that
478- // it matches neither meshes nor particles path
477+
478+ case internal::ContainedType::Particle:
479+ std::cerr << " [Warning] Dataset found at '"
480+ << (concatWithSep (currentPath, " /" ) + " /" + path)
481+ << " ' inside the particles path. A particle species is "
482+ " always a group, never a dataset. Will parse as a "
483+ " custom dataset. Storing custom datasets inside the "
484+ " particles path is discouraged."
485+ << std::endl;
486+ [[fallthrough]];
487+ // Group is a bit of an internal misnomer here, it just means that
488+ // it matches neither meshes nor particles path
479489 case internal::ContainedType::Group: {
480490 auto &rc = data.embeddedDatasets ()[path];
481491 Parameter<Operation::OPEN_DATASET> dOpen;
@@ -513,14 +523,6 @@ void CustomHierarchy::read(
513523 meshesMap.forget (path);
514524 }
515525 break ;
516- case internal::ContainedType::Particle:
517- std::cerr
518- << " [Warning] Dataset found at '"
519- << (concatWithSep (currentPath, " /" ) + " /" + path)
520- << " that matches one of the given particle paths. A particle "
521- " species is always a group, never a dataset. Will skip."
522- << std::endl;
523- break ;
524526 }
525527 }
526528
0 commit comments