Skip to content

Commit e6b7dc1

Browse files
committed
Do not warn on parallel flush params in serial
1 parent 44f1382 commit e6b7dc1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/IO/HDF5/HDF5IOHandler.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3373,20 +3373,23 @@ std::future<void> HDF5IOHandlerImpl::flush(internal::ParsedFlushParams &params)
33733373
if (params.backendConfig.json().contains("hdf5"))
33743374
{
33753375
auto hdf5_config = params.backendConfig["hdf5"];
3376+
auto init_json_shadow = nlohmann::json::parse(flush_cfg_mask);
3377+
json::merge_internal(
3378+
hdf5_config.getShadow(), init_json_shadow, /* do_prune = */ false);
33763379

33773380
if (auto shadow = hdf5_config.invertShadow(); shadow.size() > 0)
33783381
{
33793382
switch (hdf5_config.originallySpecifiedAs)
33803383
{
33813384
case json::SupportedLanguages::JSON:
3382-
std::cerr << "Warning: parts of the backend configuration for "
3383-
"HDF5 remain unused:\n"
3385+
std::cerr << "Warning: parts of the backend flush "
3386+
"configuration for HDF5 remain unused:\n"
33843387
<< shadow << std::endl;
33853388
break;
33863389
case json::SupportedLanguages::TOML: {
33873390
auto asToml = json::jsonToToml(shadow);
3388-
std::cerr << "Warning: parts of the backend configuration for "
3389-
"HDF5 remain unused:\n"
3391+
std::cerr << "Warning: parts of the backend flush "
3392+
"configuration for HDF5 remain unused:\n"
33903393
<< json::format_toml(asToml) << std::endl;
33913394
break;
33923395
}

0 commit comments

Comments
 (0)