Skip to content

Commit 58e6e4c

Browse files
committed
openPMD: no BP5 Group Based
Disallow BP5 with group based encoding, because it creates files that cannot be read back efficiently. What works: BP4 f, BP4 g, BP4 v (still experimental), BP5 f, BP5 v (still experimental), H5 f, H5 g.
1 parent 47235b9 commit 58e6e4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ FlushFormatOpenPMD::FlushFormatOpenPMD (const std::string& diag_name)
4646
encoding = openPMD::IterationEncoding::fileBased;
4747
}
4848

49+
// BP5 does not support groupBased (metadata explosion)
50+
if ((openpmd_backend == "bp5" || openpmd_backend == "bp") &&
51+
(encoding == openPMD::IterationEncoding::groupBased))
52+
{
53+
throw std::runtime_error("BeamMonitor: groupBased encoding not supported for BP5.");
54+
}
55+
4956
std::string diag_type_str;
5057
pp_diag_name.get("diag_type", diag_type_str);
5158
if (diag_type_str == "BackTransformed")

0 commit comments

Comments
 (0)